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
Von Klasse geerbte Felder java.io.DataOutputStream
written
Von Klasse geerbte Felder java.io.FilterOutputStream
out
-
Konstruktorübersicht
KonstruktorBeschreibungCompressingDataOutputStream
(ByteArrayOutputStream baos, ConstantPoolWriter constantPoolWriter) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
int
compressFilepath
(String filepath) int
compressName
(String name) int
compressSignature
(String signature) void
writeCompressedName
(String name) void
writeCompressedPath
(String path) void
writeCompressedSignature
(String signature) Von Klasse geerbte Methoden java.io.DataOutputStream
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
Von Klasse geerbte Methoden java.io.FilterOutputStream
close, write
Von Klasse geerbte Methoden java.io.OutputStream
nullOutputStream
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von 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
-