Package org.aspectj.weaver
Klasse CompressingDataOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
org.aspectj.weaver.CompressingDataOutputStream
- Alle implementierten Schnittstellen:
Closeable,DataOutput,Flushable,AutoCloseable
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
-
Feldübersicht
FelderVon Klasse geerbte Felder java.io.DataOutputStream
writtenVon Klasse geerbte Felder java.io.FilterOutputStream
out -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCompressingDataOutputStream(ByteArrayOutputStream baos, ConstantPoolWriter constantPoolWriter) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanintcompressFilepath(String filepath) intcompressName(String name) intcompressSignature(String signature) voidwriteCompressedName(String name) voidwriteCompressedPath(String path) voidwriteCompressedSignature(String signature) Von Klasse geerbte Methoden java.io.DataOutputStream
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFVon Klasse geerbte Methoden java.io.FilterOutputStream
close, writeVon Klasse geerbte Methoden java.io.OutputStream
nullOutputStreamVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.io.DataOutput
write
-
Felddetails
-
compressionEnabled
public boolean compressionEnabled
-
-
Konstruktordetails
-
CompressingDataOutputStream
public CompressingDataOutputStream(ByteArrayOutputStream baos, ConstantPoolWriter constantPoolWriter) -
CompressingDataOutputStream
-
-
Methodendetails
-
canCompress
public boolean canCompress() -
compressSignature
- Parameter:
signature- of the form 'La/b/c/d;'- Gibt zurück:
- the constant pool index
-
compressFilepath
- Parameter:
filepath- a file system path 'c:\a\b\c.txt' or '/a/b/c.txt'- Gibt zurück:
- the constant pool index
-
compressName
- Parameter:
name- a simple name (for example a method or field name)- Gibt zurück:
- the constant pool index
-
writeCompressedName
- Parameter:
name- a simple name (for example a method or field name)- Löst aus:
IOException
-
writeCompressedSignature
- Parameter:
signature- of the form 'La/b/c/d;'- Löst aus:
IOException
-
writeCompressedPath
- Parameter:
path- a file system path 'c:\a\b\c.txt' or '/a/b/c.txt'- Löst aus:
IOException
-