Class MemoryFile

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<java.io.File>

    public class MemoryFile
    extends java.io.File
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.io.File

        pathSeparator, pathSeparatorChar, separator, separatorChar
    • Constructor Summary

      Constructors 
      Constructor Description
      MemoryFile​(java.net.URL url)  
      MemoryFile​(java.nio.file.Path filePath)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canRead()  
      boolean canWrite()  
      boolean equals​(java.lang.Object o)  
      boolean exists()  
      byte[] getContent()  
      java.lang.String getName()  
      int hashCode()  
      long length()  
      java.lang.String toString()  
      • Methods inherited from class java.io.File

        canExecute, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, isAbsolute, isDirectory, isFile, isHidden, lastModified, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toURI, toURL
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MemoryFile

        public MemoryFile​(java.nio.file.Path filePath)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • MemoryFile

        public MemoryFile​(java.net.URL url)
                   throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getName

        public java.lang.String getName()
        Overrides:
        getName in class java.io.File
      • exists

        public boolean exists()
        Overrides:
        exists in class java.io.File
      • getContent

        public byte[] getContent()
      • canRead

        public boolean canRead()
        Overrides:
        canRead in class java.io.File
      • canWrite

        public boolean canWrite()
        Overrides:
        canWrite in class java.io.File
      • length

        public long length()
        Overrides:
        length in class java.io.File
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.io.File
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.io.File
      • toString

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