|
||||||||||
| 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(java.lang.Object pOther)
|
java.util.SortedSet<Entry> |
getChildEntries()
Returns the children of this Entry. |
Entry |
getChildEntry(java.lang.String pName)
Returns the child of this Entry with the given name. |
SeekableInputStream |
getInputStream()
Returns the InputStream for this Entry |
java.lang.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 |
java.lang.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 java.lang.String getName()
Entry
Entry
public SeekableInputStream getInputStream()
throws java.io.IOException
InputStream for this Entry
InputStream containing the data for this
Entry or null if this is a directory Entry
java.io.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(java.lang.String pName)
throws java.io.IOException
Entry with the given name.
pName - the name of the child Entry
Entry or null if thee is no such
child
java.io.IOException - if an I/O exception occurs
public java.util.SortedSet<Entry> getChildEntries()
throws java.io.IOException
Entry.
SortedSet of Entry objects
java.io.IOException - if an I/O exception occurspublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object pOther)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(Entry pOther)
compareTo in interface java.lang.Comparable<Entry>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||