Class CachedFile


public class CachedFile extends Object
Represents a file loaded from disk into main memory.
  • Constructor Details

    • CachedFile

      public CachedFile(CachedFile file)
      Copy constructor.
      file - the file to copy from.
    • CachedFile

      public CachedFile(byte[] bytes, Path path, String fileName)
      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

      public String getPath()
    • setPath

      public void setPath(String path)
    • getModified

      public Long getModified()
    • setModified

      public void setModified(Long modified)
    • getSize

      public long getSize()
    • setSize

      public void setSize(long size)
    • getBytes

      public byte[] getBytes()
    • setBytes

      public CachedFile setBytes(byte[] bytes)