Java Utililty Methods OutputStream Write Int

List of utility methods to do OutputStream Write Int

Description

The list of methods to do OutputStream Write Int are organized into topic(s).

Method

voidwriteInt(OutputStream out, int i)
write Int
out.write(intToByteArray(i));
voidwriteInt(OutputStream out, int i)
write Int
out.write(i);
out.write(i >> 8);
out.write(i >> 16);
out.write(i >> 24);
voidwriteInt(OutputStream out, int i)
write Int
byte[] b = new byte[4];
b[0] = (byte) (i & 0xff);
b[1] = (byte) (i >>> 8);
b[2] = (byte) (i >>> 16);
b[3] = (byte) (i >>> 24);
out.write(b);
voidwriteInt(OutputStream out, int i)
write Int
byte[] b = new byte[4];
b[0] = (byte) (i & 0xff);
b[1] = (byte) (i >>> 8);
b[2] = (byte) (i >>> 16);
b[3] = (byte) (i >>> 24);
out.write(b);
voidwriteInt(OutputStream out, int v)
write Int
out.write((v >>> 24) & 0xFF);
out.write((v >>> 16) & 0xFF);
out.write((v >>> 8) & 0xFF);
out.write((v >>> 0) & 0xFF);
voidwriteInt(OutputStream out, int v)
write Int
out.write((v >>> 24) & 0xFF);
out.write((v >>> 16) & 0xFF);
out.write((v >>> 8) & 0xFF);
out.write((v >>> 0) & 0xFF);
voidwriteInt(OutputStream out, int value)
write Int
out.write((value >>> 24) & 0xFF);
out.write((value >>> 16) & 0xFF);
out.write((value >>> 8) & 0xFF);
out.write((value) & 0xFF);
voidwriteInt(OutputStream out, int value)
write Int
byte[] buf = new byte[4];
writeIntToBuffer(value, buf, 0);
out.write(buf);
voidwriteInt(OutputStream out, int value)
Write an int.
out.write(value >> 24);
out.write(value >> 16);
out.write(value >> 8);
out.write(value);
voidwriteInt(OutputStream out, int value)
write an integer to the output stream
out.write((value >>> 24) & 0xFF);
out.write((value >>> 16) & 0xFF);
out.write((value >>> 8) & 0xFF);
out.write((value >>> 0) & 0xFF);