Interface FileEntry

All Superinterfaces:
Entry
All Known Implementing Classes:
BaseFileEntry

public interface FileEntry extends Entry
An Entry that corresponds to a file.
Since:
1.0
  • Method Details

    • getSize

      long getSize() throws IOException
      Returns the size in bytes of the entry.
      Returns:
      the length of the entry in bytes or -1L if the length cannot be determined.
      Throws:
      IOException - if an I/O error occurs.
      Since:
      1.0
    • getInputStream

      InputStream getInputStream() throws IOException
      Returns the contents of the entry.
      Returns:
      the contents of the entry as an InputStream (caller is responsible for closing).
      Throws:
      IOException - if an I/O error occurs.
      Since:
      1.0