Package jminusminus
Class CLOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
jminusminus.CLOutputStream
- All Implemented Interfaces:
- Closeable,- DataOutput,- Flushable,- AutoCloseable
Inherits from java.out.DataOutputStream and provides an extra function for writing unsigned
 int to the output stream, which is required for writing Java class files.
- 
Field SummaryFields inherited from class java.io.DataOutputStreamwrittenFields inherited from class java.io.FilterOutputStreamout
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a CLOutputStream from the specified output stream.
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidwriteInt(long v) Writes four bytes to the output stream to represent the value of the argument.Methods inherited from class java.io.DataOutputStreamflush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFMethods inherited from class java.io.FilterOutputStreamclose, writeMethods inherited from class java.io.OutputStreamnullOutputStreamMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.DataOutputwrite
- 
Constructor Details- 
CLOutputStreamConstructs a CLOutputStream from the specified output stream.- Parameters:
- out- output stream.
 
 
- 
- 
Method Details- 
writeIntWrites four bytes to the output stream to represent the value of the argument. The byte values to be written, in the order shown, are:(byte) ( 0xFF & ( v >> 24 ) ) (byte) ( 0xFF & ( v >> 16 ) ) (byte) ( 0xFF & ( v >> 8 ) ) (byte) ( 0xFF & v )- Parameters:
- v- the int value to be written.
- Throws:
- IOException- if an error occurs while writing.
 
 
-