Package org.kie.efesto.common.api.io
Class MemoryFile
- java.lang.Object
-
- java.io.File
-
- org.kie.efesto.common.api.io.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
-
-
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 booleancanRead()booleancanWrite()booleanequals(java.lang.Object o)booleanexists()byte[]getContent()java.lang.StringgetName()inthashCode()longlength()java.lang.StringtoString()-
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
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Overrides:
getNamein classjava.io.File
-
exists
public boolean exists()
- Overrides:
existsin classjava.io.File
-
getContent
public byte[] getContent()
-
canRead
public boolean canRead()
- Overrides:
canReadin classjava.io.File
-
canWrite
public boolean canWrite()
- Overrides:
canWritein classjava.io.File
-
length
public long length()
- Overrides:
lengthin classjava.io.File
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.io.File
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.io.File
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.io.File
-
-