Package com.codingchili.core.files
Class CachedFile
java.lang.Object
com.codingchili.core.files.CachedFile
Represents a file loaded from disk into main memory.
-
Constructor Summary
ConstructorDescriptionCachedFile(byte[] bytes, Path path, String fileName)
CachedFile(CachedFile file)
Copy constructor. -
Method Summary
-
Constructor Details
-
CachedFile
Copy constructor.- Parameters:
file
- the file to copy from.
-
CachedFile
- Parameters:
bytes
- the contents of the cached file.path
- a path to the file on disk for reading metadata.fileName
- the name of the file
-
-
Method Details
-
getBuffer
public io.vertx.core.buffer.Buffer getBuffer() -
getPath
-
setPath
-
getModified
-
setModified
-
getSize
public long getSize() -
setSize
public void setSize(long size) -
getBytes
public byte[] getBytes() -
setBytes
-