-
Notifications
You must be signed in to change notification settings - Fork 251
Add method to retrieve the significant directory count #374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -485,6 +485,22 @@ Object openPlane(int no, int x, int y, int w, int h) | |
| /** Returns true if this is a single-file format. */ | ||
| boolean isSingleFile(String id) throws FormatException, IOException; | ||
|
|
||
| /** | ||
| * Returns the number of parent directories that are important when | ||
| * processing the given list of files. The number of directories is relative | ||
| * to the common parent. For example, given a list with these two files: | ||
| * | ||
| * /path/to/file/foo | ||
| * /path/to/file/that/is/related | ||
| * | ||
| * A return value of 0 indicates that "/path/to/file/" is irrelevant. | ||
| * A return value of 1 indicates that "/path/to/" is irrelevant. | ||
| * Return values less than 0 are invalid. | ||
| * | ||
| * All listed files are assumed to belong to datasets of the same format. | ||
| */ | ||
| int getRequiredDirectories(String[] files) throws FormatException, IOException; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can I think of this as a static method -- does reader state matter at all?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A pre-
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It can be called before or after |
||
|
|
||
| /** Returns a short description of the dataset structure. */ | ||
| String getDatasetStructureDescription(); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to start the comment with two asterisks so that Javadoc can pick it up?
(oh, no, sorry, just as a normal comment Javadoc will pick up the doc from the interface, I think, I was just wrongfooted by the Javadoc-style "see")