| Modifier and Type | Field and Description |
|---|---|
| private final String[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | POIFSDocumentPath()
simple constructor for the path of a document that is in the root of the POIFSFileSystem. |
| public | POIFSDocumentPath(final String[]
the Strings making up the path to a document.
The Strings must be ordered as they appear in the directory hierarchy of the document.
The first string must be the name of a directory in the root of the POIFSFileSystem, and
every Nth (for N > 1) string thereafter must be the name of a directory in the directory
identified by the (N-1)th string. components)If the components parameter is null or has zero length, the POIFSDocumentPath is appropriate for a document that is in the root of a POIFSFileSystem constructor for the path of a document that is not in the root of the POIFSFileSystem |
| public | POIFSDocumentPath(final POIFSDocumentPath
the existing path path, final String[] the additional subdirectory names to be added components)constructor that adds additional subdirectories to an existing path |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the object is equal to this objectthe object we're checking equality for o)Overrides java. Two POIFSDocumentPath instances are equal if they have the same number of component Strings, and if each component String is equal to its corresponding component String |
| public String | Returns: the nth component;which component (0 ... length() - 1) n)get the specified component |
| public String | Returns: The last name in the document path's name sequence, or empty string if this is the root pathReturns the last name in the document path's name sequence. |
| public POIFSDocumentPath | Returns: path of parent, or null if this path is the root pathReturns the path's parent or |
| public int | |
| public int | |
| public String | Returns: string representationOverrides java. Returns a string representation of the path. |
| components | back to summary |
|---|---|
| private final String[] components | |
| hashcode | back to summary |
|---|---|
| private int hashcode | |
| POIFSDocumentPath | back to summary |
|---|---|
| public POIFSDocumentPath() simple constructor for the path of a document that is in the root of the POIFSFileSystem. The constructor that takes an array of Strings can also be used to create such a POIFSDocumentPath by passing it a null or empty String array | |
| POIFSDocumentPath | back to summary |
|---|---|
| public POIFSDocumentPath(final String[] components) throws IllegalArgumentException constructor for the path of a document that is not in the root of the POIFSFileSystem
| |
| POIFSDocumentPath | back to summary |
|---|---|
| public POIFSDocumentPath(final POIFSDocumentPath path, final String[] components) throws IllegalArgumentException constructor that adds additional subdirectories to an existing path
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. Two POIFSDocumentPath instances are equal if they have the same number of component Strings, and if each component String is equal to its corresponding component String
| |
| getComponent | back to summary |
|---|---|
| public String getComponent(int n) throws ArrayIndexOutOfBoundsException get the specified component
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the last name in the document path's name sequence. If the document path's name sequence is empty, then the empty string is returned.
| |
| getParent | back to summary |
|---|---|
| public POIFSDocumentPath getParent() Returns the path's parent or
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. calculate and return the hashcode
| |
| length | back to summary |
|---|---|
public int length()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of the path. Components are
separated by the platform-specific file separator
| |