public final class NDocumentInputStream extends DocumentInputStream
NPOIFSFileSystem instance.EOF, SIZE_INT, SIZE_LONG, SIZE_SHORT| Constructor and Description |
|---|
NDocumentInputStream(DocumentEntry document)
Create an InputStream from the specified DocumentEntry
|
NDocumentInputStream(NPOIFSDocument 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, readPlain, readUIntpublic NDocumentInputStream(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 NDocumentInputStream(NPOIFSDocument document)
document - the Document to be readpublic int available()
available in interface LittleEndianInputavailable in class DocumentInputStreampublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class DocumentInputStreampublic void mark(int ignoredReadlimit)
mark in class DocumentInputStreampublic int read()
throws java.io.IOException
read in class DocumentInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class DocumentInputStreamjava.io.IOExceptionpublic void reset()
reset in class DocumentInputStreampublic long skip(long n)
throws java.io.IOException
skip in class DocumentInputStreamjava.io.IOExceptionpublic void readFully(byte[] buf,
int off,
int len)
readFully in interface LittleEndianInputreadFully in class DocumentInputStreampublic byte readByte()
readByte in interface LittleEndianInputreadByte in class DocumentInputStreampublic double readDouble()
readDouble in interface LittleEndianInputreadDouble in class DocumentInputStreampublic long readLong()
readLong in interface LittleEndianInputreadLong in class DocumentInputStreampublic short readShort()
readShort in interface LittleEndianInputreadShort in class DocumentInputStreampublic int readInt()
readInt in interface LittleEndianInputreadInt in class DocumentInputStreampublic int readUShort()
readUShort in interface LittleEndianInputreadUShort in class DocumentInputStreampublic int readUByte()
readUByte in interface LittleEndianInputreadUByte in class DocumentInputStreamCopyright 2018 The Apache Software Foundation or its licensors, as applicable.