public final class ODocumentInputStream extends DocumentInputStream
POIFSFileSystem
instance.EOF, SIZE_INT, SIZE_LONG, SIZE_SHORT
Constructor and Description |
---|
ODocumentInputStream(DocumentEntry document)
Create an InputStream from the specified DocumentEntry
|
ODocumentInputStream(POIFSDocument document)
Create an InputStream from the specified Document
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int ignoredReadlimit) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
byte |
readByte() |
double |
readDouble() |
void |
readFully(byte[] buf,
int off,
int len) |
int |
readInt() |
long |
readLong() |
short |
readShort() |
int |
readUByte() |
int |
readUShort() |
void |
reset()
Repositions this stream to the position at the time the mark() method was
last called on this input stream.
|
long |
skip(long n) |
markSupported, read, readFully
public ODocumentInputStream(DocumentEntry document) throws java.io.IOException
document
- the DocumentEntry to be readjava.io.IOException
- if the DocumentEntry cannot be opened (like, maybe it has
been deleted?)public ODocumentInputStream(POIFSDocument document)
document
- the Document to be readpublic int available()
available
in interface LittleEndianInput
available
in class DocumentInputStream
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class DocumentInputStream
public void mark(int ignoredReadlimit)
mark
in class DocumentInputStream
public int read() throws java.io.IOException
read
in class DocumentInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class DocumentInputStream
java.io.IOException
public void reset()
reset
in class DocumentInputStream
public long skip(long n) throws java.io.IOException
skip
in class DocumentInputStream
java.io.IOException
public byte readByte()
readByte
in interface LittleEndianInput
readByte
in class DocumentInputStream
public double readDouble()
readDouble
in interface LittleEndianInput
readDouble
in class DocumentInputStream
public short readShort()
readShort
in interface LittleEndianInput
readShort
in class DocumentInputStream
public void readFully(byte[] buf, int off, int len)
readFully
in interface LittleEndianInput
readFully
in class DocumentInputStream
public long readLong()
readLong
in interface LittleEndianInput
readLong
in class DocumentInputStream
public int readInt()
readInt
in interface LittleEndianInput
readInt
in class DocumentInputStream
public int readUShort()
readUShort
in interface LittleEndianInput
readUShort
in class DocumentInputStream
public int readUByte()
readUByte
in interface LittleEndianInput
readUByte
in class DocumentInputStream
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.