org.apache.poi.poifs.filesystem
Class NDocumentInputStream
java.lang.Object
   java.io.InputStream
java.io.InputStream
       org.apache.poi.poifs.filesystem.DocumentInputStream
org.apache.poi.poifs.filesystem.DocumentInputStream
           org.apache.poi.poifs.filesystem.NDocumentInputStream
org.apache.poi.poifs.filesystem.NDocumentInputStream
- All Implemented Interfaces: 
- java.io.Closeable, LittleEndianInput
- public final class NDocumentInputStream 
- extends DocumentInputStream
This class provides methods to read a DocumentEntry managed by a
 NPOIFSFileSystem instance.
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
NDocumentInputStream
public NDocumentInputStream(DocumentEntry document)
                     throws java.io.IOException
- Create an InputStream from the specified DocumentEntry
 
- Parameters:
- document- the DocumentEntry to be read
- Throws:
- java.io.IOException- if the DocumentEntry cannot be opened (like, maybe it has
                been deleted?)
 
NDocumentInputStream
public NDocumentInputStream(NPOIFSDocument document)
- Create an InputStream from the specified Document
 
- Parameters:
- document- the Document to be read
 
available
public int available()
- 
- Specified by:
- availablein interface- LittleEndianInput
- Overrides:
- availablein class- DocumentInputStream
 
- 
 
close
public void close()
- 
- Specified by:
- closein interface- java.io.Closeable
- Overrides:
- closein class- DocumentInputStream
 
- 
 
mark
public void mark(int ignoredReadlimit)
- 
- Overrides:
- markin class- DocumentInputStream
 
- 
 
read
public int read()
         throws java.io.IOException
- 
- Overrides:
- readin class- DocumentInputStream
 
- 
- Throws:
- java.io.IOException
 
read
public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
- 
- Overrides:
- readin class- DocumentInputStream
 
- 
- Throws:
- java.io.IOException
 
reset
public void reset()
- Repositions this stream to the position at the time the mark() method was
 last called on this input stream. If mark() has not been called this
 method repositions the stream to its beginning.
 
- 
- Overrides:
- resetin class- DocumentInputStream
 
- 
 
skip
public long skip(long n)
          throws java.io.IOException
- 
- Overrides:
- skipin class- DocumentInputStream
 
- 
- Throws:
- java.io.IOException
 
readFully
public void readFully(byte[] buf,
                      int off,
                      int len)
- 
- Specified by:
- readFullyin interface- LittleEndianInput
- Overrides:
- readFullyin class- DocumentInputStream
 
- 
 
readByte
public byte readByte()
- 
- Specified by:
- readBytein interface- LittleEndianInput
- Overrides:
- readBytein class- DocumentInputStream
 
- 
 
readDouble
public double readDouble()
- 
- Specified by:
- readDoublein interface- LittleEndianInput
- Overrides:
- readDoublein class- DocumentInputStream
 
- 
 
readLong
public long readLong()
- 
- Specified by:
- readLongin interface- LittleEndianInput
- Overrides:
- readLongin class- DocumentInputStream
 
- 
 
readShort
public short readShort()
- 
- Specified by:
- readShortin interface- LittleEndianInput
- Overrides:
- readShortin class- DocumentInputStream
 
- 
 
readInt
public int readInt()
- 
- Specified by:
- readIntin interface- LittleEndianInput
- Overrides:
- readIntin class- DocumentInputStream
 
- 
 
readUShort
public int readUShort()
- 
- Specified by:
- readUShortin interface- LittleEndianInput
- Overrides:
- readUShortin class- DocumentInputStream
 
- 
 
readUByte
public int readUByte()
- 
- Specified by:
- readUBytein interface- LittleEndianInput
- Overrides:
- readUBytein class- DocumentInputStream
 
-