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
public NDocumentInputStream(DocumentEntry document) throws IOException
document
- the DocumentEntry to be readIOException
- 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 LittleEndianInput
available
in class DocumentInputStream
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class DocumentInputStream
public void mark(int ignoredReadlimit)
mark
in class DocumentInputStream
public int read() throws IOException
read
in class DocumentInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class DocumentInputStream
IOException
public void reset()
reset
in class DocumentInputStream
public long skip(long n) throws IOException
skip
in class DocumentInputStream
IOException
public void readFully(byte[] buf, int off, int len)
readFully
in interface LittleEndianInput
readFully
in class DocumentInputStream
public byte readByte()
readByte
in interface LittleEndianInput
readByte
in class DocumentInputStream
public double readDouble()
readDouble
in interface LittleEndianInput
readDouble
in class DocumentInputStream
public long readLong()
readLong
in interface LittleEndianInput
readLong
in class DocumentInputStream
public short readShort()
readShort
in interface LittleEndianInput
readShort
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 © 2020. All rights reserved.