|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.twelvemonkeys.io.ole2.Entry
public final class Entry
Represents an OLE 2 compound document entry. This is similar to a file in a file system, or an entry in a ZIP or JAR file.
CompoundDocument| Field Summary | |
|---|---|
static int |
LENGTH
|
| Method Summary | |
|---|---|
int |
compareTo(Entry pOther)
|
long |
created()
Returns the time that this entry was created. |
boolean |
equals(Object pOther)
|
SortedSet<Entry> |
getChildEntries()
Returns the children of this Entry. |
Entry |
getChildEntry(String pName)
Returns the child of this Entry with the given name. |
SeekableInputStream |
getInputStream()
Returns the InputStream for this Entry |
String |
getName()
Returns the name of this Entry |
Entry |
getParentEntry()
Return the parent of this Entry |
int |
hashCode()
|
boolean |
isDirectory()
If true this Entry is a directory
Entry. |
boolean |
isFile()
If true this Entry is a file (document)
Entry. |
boolean |
isRoot()
If true this Entry is the root Entry. |
long |
lastModified()
Returns the time that this entry was last modified. |
long |
length()
Returns the length of this entry |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LENGTH
| Method Detail |
|---|
public boolean isRoot()
true this Entry is the root Entry.
true if this is the root Entrypublic boolean isDirectory()
true this Entry is a directory
Entry.
true if this is a directory Entrypublic boolean isFile()
true this Entry is a file (document)
Entry.
true if this is a document Entrypublic String getName()
Entry
Entry
public SeekableInputStream getInputStream()
throws IOException
InputStream for this Entry
InputStream containing the data for this
Entry or null if this is a directory Entry
IOException - if an I/O exception occurslength()public long length()
0 if this is
a directory EntrygetInputStream()public long created()
0L).
long value representing the time this entry was
created, measured in milliseconds since the epoch
(00:00:00 GMT, January 1, 1970), or 0L if no
creation time stamp exists for this entry.public long lastModified()
0L).
long value representing the time this entry was
last modified, measured in milliseconds since the epoch
(00:00:00 GMT, January 1, 1970), or 0L if no
modification time stamp exists for this entry.public Entry getParentEntry()
Entry
Entry, or null if this is
the root Entry
public Entry getChildEntry(String pName)
throws IOException
Entry with the given name.
pName - the name of the child Entry
Entry or null if thee is no such
child
IOException - if an I/O exception occurs
public SortedSet<Entry> getChildEntries()
throws IOException
Entry.
SortedSet of Entry objects
IOException - if an I/O exception occurspublic String toString()
toString in class Objectpublic boolean equals(Object pOther)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(Entry pOther)
compareTo in interface Comparable<Entry>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||