Class InputStreamSourceFileType


  • public class InputStreamSourceFileType
    extends FileType
    This FileType represent a "File" via an input stream URL. This is a convenient object for encapsulating ClassLoader stuff.
    • Method Detail

      • createInputStream

        protected java.io.InputStream createInputStream()
                                                 throws java.io.IOException
        Description copied from class: FileType
        Creates an InputStream for the underlying file.
        Overrides:
        createInputStream in class FileType
        Returns:
        an InputStream of the underlying file.
        Throws:
        java.io.IOException - If the file cannot be opened for reading
      • createOutputStream

        protected java.io.OutputStream createOutputStream()
                                                   throws java.io.IOException
        Description copied from class: FileType
        Creates an OutputStream for the underlying file.
        Overrides:
        createOutputStream in class FileType
        Returns:
        an OutputStream of the underlying file.
        Throws:
        java.io.IOException - If the file cannot be opened for writing
      • getFile

        public java.io.File getFile()
                             throws java.io.IOException
        Returns the underlying file.
        Overrides:
        getFile in class FileType
        Returns:
        a File object
        Throws:
        java.io.IOException - if file cannot be determined, e.g. for an url pointing to an InputStream.