Package org.openjdk.asmtools.jasm
Class ClassData.CDOutputStream
java.lang.Object
org.openjdk.asmtools.jasm.ClassData.CDOutputStream
- All Implemented Interfaces:
CheckedDataOutputStream
- Enclosing class:
ClassData
This is a wrapper for DataOutputStream, used for debugging purposes. it allows
writing the byte-stream of a class up to a given byte number.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidenable()voidvoidsetLimit(int limit) final voidvoidwrite(byte[] b, int off, int len) voidwrite(int b) final voidwriteBoolean(boolean v) final voidwriteByte(int v) voidwriteBytes(String s) voidwriteChar(int v) voidwriteChars(String s) voidwriteDouble(double v) voidwriteFloat(float v) voidwriteInt(int v) voidwriteLong(long v) voidwriteShort(int v) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openjdk.asmtools.jasm.CheckedDataOutputStream
write
-
Field Details
-
enabled
public boolean enabled -
byteLimit
private int byteLimit -
dos
-
-
Constructor Details
-
CDOutputStream
public CDOutputStream() -
CDOutputStream
-
-
Method Details
-
setOutputStream
-
setDataOutputStream
-
setLimit
public void setLimit(int limit) -
enable
public void enable() -
check
- Throws:
IOException
-
write
- Specified by:
writein interfaceCheckedDataOutputStream- Throws:
IOException
-
write
- Specified by:
writein interfaceCheckedDataOutputStream- Throws:
IOException
-
writeBoolean
- Specified by:
writeBooleanin interfaceCheckedDataOutputStream- Throws:
IOException
-
writeByte
- Specified by:
writeBytein interfaceCheckedDataOutputStream- Throws:
IOException
-
writeShort
- Specified by:
writeShortin interfaceCheckedDataOutputStream- Throws:
IOException
-
writeChar
- Specified by:
writeCharin interfaceCheckedDataOutputStream- Throws:
IOException
-
writeInt
- Specified by:
writeIntin interfaceCheckedDataOutputStream- Throws:
IOException
-
writeLong
- Specified by:
writeLongin interfaceCheckedDataOutputStream- Throws:
IOException
-
writeFloat
- Specified by:
writeFloatin interfaceCheckedDataOutputStream- Throws:
IOException
-
writeDouble
- Specified by:
writeDoublein interfaceCheckedDataOutputStream- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin interfaceCheckedDataOutputStream- Throws:
IOException
-
writeChars
- Specified by:
writeCharsin interfaceCheckedDataOutputStream- Throws:
IOException
-
writeUTF
- Specified by:
writeUTFin interfaceCheckedDataOutputStream- Throws:
IOException
-