public final class CompoundDocument extends Object
Modifier and Type | Field and Description |
---|---|
static long |
EPOCH_OFFSET
The epoch offset of CompoundDocument time stamps
|
static int |
HEADER_SIZE |
Constructor and Description |
---|
CompoundDocument(File pFile)
Creates a (for now) read only
CompoundDocument . |
CompoundDocument(ImageInputStream pInput)
Creates a read only
CompoundDocument . |
CompoundDocument(InputStream pInput)
Creates a read only
CompoundDocument . |
Modifier and Type | Method and Description |
---|---|
static boolean |
canRead(DataInput pInput) |
Entry |
getRootEntry() |
static long |
toJavaTimeInMillis(long pMSTime)
Converts the given time stamp to standard Java time representation,
milliseconds since January 1, 1970.
|
String |
toString() |
public static final int HEADER_SIZE
public static final long EPOCH_OFFSET
public CompoundDocument(File pFile) throws IOException
CompoundDocument
.pFile
- the file to read fromIOException
- if an I/O exception occurs while reading the headerpublic CompoundDocument(InputStream pInput) throws IOException
CompoundDocument
.pInput
- the input to read fromIOException
- if an I/O exception occurs while reading the headerpublic CompoundDocument(ImageInputStream pInput) throws IOException
CompoundDocument
.pInput
- the input to read fromIOException
- if an I/O exception occurs while reading the headerpublic static boolean canRead(DataInput pInput)
public Entry getRootEntry() throws IOException
IOException
public 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
Copyright © 2017. All rights reserved.