Class ResourceCollectionContainer.ResourceDocument

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private MetaData metaData  
      private org.apache.tools.ant.types.Resource resource  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ResourceDocument()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MetaData getMetaData()
      Gets data describing this resource.
      java.lang.String getName()  
      java.io.InputStream inputStream()
      Streams the document's contents.
      boolean isComposite()
      Is this a composite document?
      java.io.Reader reader()
      Reads the content of this document.
      private void setResource​(org.apache.tools.ant.types.Resource resource)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • resource

        private org.apache.tools.ant.types.Resource resource
      • metaData

        private final MetaData metaData
    • Constructor Detail

      • ResourceDocument

        private ResourceDocument()
    • Method Detail

      • setResource

        private void setResource​(org.apache.tools.ant.types.Resource resource)
      • reader

        public java.io.Reader reader()
                              throws java.io.IOException
        Description copied from interface: Document
        Reads the content of this document.
        Specified by:
        reader in interface 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
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Document
      • isComposite

        public boolean isComposite()
        Description copied from interface: Document
        Is this a composite document?
        Specified by:
        isComposite in interface Document
        Returns:
        true if composite, false otherwise
      • getMetaData

        public MetaData getMetaData()
        Description copied from interface: Document
        Gets data describing this resource.
        Specified by:
        getMetaData in interface Document
        Returns:
        not null
      • inputStream

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