Documentation of 'org.apache.poi.poifs.filesystem.DocumentInputStream' Java class
DocumentInputStream
org.apache.poi.poifs.filesystem

Class DocumentInputStream

    • Constructor Detail

      • DocumentInputStream

        public DocumentInputStream(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?)
      • DocumentInputStream

        public DocumentInputStream(POIFSDocument document)
        Create an InputStream from the specified Document
        Parameters:
        document - the Document to be read
      • DocumentInputStream

        public DocumentInputStream(NPOIFSDocument document)
        Create an InputStream from the specified Document
        Parameters:
        document - the Document to be read
    • Method Detail

      • available

        public int available()
        Specified by:
        available in interface LittleEndianInput
        Overrides:
        available in class java.io.InputStream
      • close

        public void close()
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.lang.AutoCloseable
        Overrides:
        close in class java.io.InputStream
      • mark

        public void mark(int ignoredReadlimit)
        Overrides:
        mark in class java.io.InputStream
      • markSupported

        public boolean markSupported()
        Tests if this input stream supports the mark and reset methods.
        Overrides:
        markSupported in class java.io.InputStream
        Returns:
        true always
      • read

        public int read()
                 throws java.io.IOException
        Specified by:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read(byte[] b)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        Throws:
        java.io.IOException
      • read

        public int read(byte[] b,
                        int off,
                        int len)
                 throws java.io.IOException
        Overrides:
        read in class java.io.InputStream
        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:
        reset in class java.io.InputStream
      • skip

        public long skip(long n)
                  throws java.io.IOException
        Overrides:
        skip in class java.io.InputStream
        Throws:
        java.io.IOException
      • readUInt

        public long readUInt()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.