org.apache.poi.poifs.filesystem
public final class DocumentInputStream extends java.io.InputStream implements LittleEndianInput
POIFSFileSystem
instance.Constructor and Description |
---|
DocumentInputStream(DocumentEntry document)
Create an InputStream from the specified DocumentEntry
|
DocumentInputStream(POIFSDocument document)
Create an InputStream from the specified Document
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int ignoredReadlimit) |
boolean |
markSupported()
Tests if this input stream supports the mark and reset methods.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
byte |
readByte() |
double |
readDouble() |
void |
readFully(byte[] buf) |
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) |
public DocumentInputStream(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 DocumentInputStream(POIFSDocument document)
document
- the Document to be readpublic int available()
available
in interface LittleEndianInput
available
in class java.io.InputStream
public void close()
close
in interface java.io.Closeable
close
in class java.io.InputStream
public void mark(int ignoredReadlimit)
mark
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
true
alwayspublic int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void reset()
reset
in class java.io.InputStream
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public byte readByte()
readByte
in interface LittleEndianInput
public double readDouble()
readDouble
in interface LittleEndianInput
public void readFully(byte[] buf)
readFully
in interface LittleEndianInput
public short readShort()
readShort
in interface LittleEndianInput
public void readFully(byte[] buf, int off, int len)
readFully
in interface LittleEndianInput
public long readLong()
readLong
in interface LittleEndianInput
public int readInt()
readInt
in interface LittleEndianInput
public int readUShort()
readUShort
in interface LittleEndianInput
public int readUByte()
readUByte
in interface LittleEndianInput
Copyright 2014 The Apache Software Foundation or its licensors, as applicable.