Class MonolithicFileDocument

    • Field Detail

      • file

        private final java.io.File file
    • Constructor Detail

      • MonolithicFileDocument

        public MonolithicFileDocument​(java.io.File file)
    • Method Detail

      • newInstance

        public static Document newInstance​(java.net.URL url)
        Parameters:
        url - The document is read from the given URL.
        Returns:
        Creates and returns a new instance.
      • reader

        public java.io.Reader reader()
                              throws java.io.IOException
        Description copied from interface: Document
        Reads the content of this document.
        Returns:
        Reader not null
        Throws:
        java.io.IOException - if this document cannot be read
        CompositeDocumentException - if this document can only be read as a composite archive
      • inputStream

        public java.io.InputStream inputStream()
                                        throws java.io.IOException
        Description copied from interface: Document
        Streams the document's contents.
        Returns:
        not null
        Throws:
        java.io.IOException - when stream could not be opened