Klasse CompressingDataOutputStream

Alle implementierten Schnittstellen:
Closeable, DataOutput, Flushable, AutoCloseable

public class CompressingDataOutputStream extends DataOutputStream
A variation of a DataOutputStream that is linked to a constant pool writer. The linked constant pool can be used to compress objects into to simple index references into the constant pool. The corresponding decompression is done in the VersionedDataInputStream.
Autor:
Andy Clement
  • Felddetails

    • compressionEnabled

      public boolean compressionEnabled
  • Konstruktordetails

  • Methodendetails

    • canCompress

      public boolean canCompress()
    • compressSignature

      public int compressSignature(String signature)
      Parameter:
      signature - of the form 'La/b/c/d;'
      Gibt zurück:
      the constant pool index
    • compressFilepath

      public int compressFilepath(String filepath)
      Parameter:
      filepath - a file system path 'c:\a\b\c.txt' or '/a/b/c.txt'
      Gibt zurück:
      the constant pool index
    • compressName

      public int compressName(String name)
      Parameter:
      name - a simple name (for example a method or field name)
      Gibt zurück:
      the constant pool index
    • writeCompressedName

      public void writeCompressedName(String name) throws IOException
      Parameter:
      name - a simple name (for example a method or field name)
      Löst aus:
      IOException
    • writeCompressedSignature

      public void writeCompressedSignature(String signature) throws IOException
      Parameter:
      signature - of the form 'La/b/c/d;'
      Löst aus:
      IOException
    • writeCompressedPath

      public void writeCompressedPath(String path) throws IOException
      Parameter:
      path - a file system path 'c:\a\b\c.txt' or '/a/b/c.txt'
      Löst aus:
      IOException