Class MemoryFile

  • All Implemented Interfaces:
    java.io.Serializable, File, FileSystemItem

    public class MemoryFile
    extends java.lang.Object
    implements File, java.io.Serializable
    See Also:
    Serialized Form
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface File
      • getContents

        public java.io.InputStream getContents()
                                        throws java.io.IOException
        Specified by:
        getContents in interface File
        Throws:
        java.io.IOException
      • getFolder

        public Folder getFolder()
      • exists

        public boolean exists()
        Specified by:
        exists in interface File
      • setContents

        public void setContents​(java.io.InputStream is)
                         throws java.io.IOException
        Specified by:
        setContents in interface File
        Throws:
        java.io.IOException
      • create

        public void create​(java.io.InputStream is)
                    throws java.io.IOException
        Specified by:
        create in interface File
        Throws:
        java.io.IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object