Class LiteralDataPacket

All Implemented Interfaces:
PacketTags

public class LiteralDataPacket extends InputStreamPacket
Generic literal data packet.
  • Method Details

    • getFormat

      public int getFormat()
      Return the format tag of the data packet.
    • getModificationTime

      public long getModificationTime()
      Return the modification time for the file (milliseconds at second level precision).
    • getFileName

      public String getFileName()
      Return the file name associated with the data packet, decoded as UTF-8.

      The file name is advisory and is read before any integrity check on the message, so it need not be valid UTF-8; a malformed sequence is decoded as U+FFFD rather than causing an exception. Use getRawFileName() for the exact bytes.

    • getRawFileName

      public byte[] getRawFileName()
      Return the file name as an uninterpreted byte array.