|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.twelvemonkeys.io.ole2.CompoundDocument
public final class CompoundDocument
Represents a read-only OLE2 compound document.
NOTE: This class is not synchronized. Accessing the document or its entries from different threads, will need synchronization on the document instance.
| Field Summary | |
|---|---|
static long |
EPOCH_OFFSET
The epoch offset of CompoundDocument time stamps |
static int |
HEADER_SIZE
|
| Constructor Summary | |
|---|---|
CompoundDocument(java.io.File pFile)
Creates a (for now) read only CompoundDocument. |
|
CompoundDocument(javax.imageio.stream.ImageInputStream pInput)
Creates a read only CompoundDocument. |
|
CompoundDocument(java.io.InputStream pInput)
Creates a read only CompoundDocument. |
|
| Method Summary | |
|---|---|
static boolean |
canRead(java.io.DataInput pInput)
|
Entry |
getRootEntry()
|
static long |
toJavaTimeInMillis(long pMSTime)
Converts the given time stamp to standard Java time representation, milliseconds since January 1, 1970. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int HEADER_SIZE
public static final long EPOCH_OFFSET
| Constructor Detail |
|---|
public CompoundDocument(java.io.File pFile)
throws java.io.IOException
CompoundDocument.
pFile - the file to read from
java.io.IOException - if an I/O exception occurs while reading the header
public CompoundDocument(java.io.InputStream pInput)
throws java.io.IOException
CompoundDocument.
pInput - the input to read from
java.io.IOException - if an I/O exception occurs while reading the header
public CompoundDocument(javax.imageio.stream.ImageInputStream pInput)
throws java.io.IOException
CompoundDocument.
pInput - the input to read from
java.io.IOException - if an I/O exception occurs while reading the header| Method Detail |
|---|
public static boolean canRead(java.io.DataInput pInput)
public Entry getRootEntry()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static long toJavaTimeInMillis(long pMSTime)
0L (meaning not specified), no conversion
is done, to behave like java.io.File.
pMSTime - an unsigned long value representing the time stamp (in
units of 100 nano seconds since January 1, 1601).
0L if pMSTime == 0L
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||