public class BinaryOutputStream extends OutputStream
Modifier and Type | Field and Description |
---|---|
static String |
BIG_ENDIAN |
static String |
LITTLE_ENDIAN |
Constructor and Description |
---|
BinaryOutputStream(OutputStream out,
boolean endian) |
BinaryOutputStream(OutputStream out,
String endian) |
Modifier and Type | Method and Description |
---|---|
static void |
appendDoubleArray(OutputStream out,
double[] array,
String endian) |
static void |
appendFloatArray(OutputStream out,
float[] array,
String endian) |
static void |
appendIntArray(OutputStream out,
int[] array,
String endian) |
void |
write(int i)
Write a text in a binary File
|
void |
writeByte(byte b,
boolean append)
Write a text in a binary File
|
void |
writeByteArray(byte[] bytes,
boolean append)
Write a text in a binary File
|
void |
writeDouble(double d,
boolean append)
Write a double in a binary File
|
void |
writeDoubleArray(double[] array,
boolean append)
Write a double array in a binary File
|
static void |
writeDoubleArray(OutputStream out,
double[] array,
String endian) |
void |
writeFloat(float f,
boolean append)
Write a float in a binary File
|
void |
writeFloatArray(float[] array,
boolean append)
Write a float array in a binary File
|
static void |
writeFloatArray(OutputStream out,
float[] array,
String endian) |
void |
writeInt(int i,
boolean append)
Write an int in a binary File
|
void |
writeIntArray(int[] array,
boolean append)
Write an int array in a binary File
|
static void |
writeIntArray(OutputStream out,
int[] array,
String endian) |
close, flush, write, write
public static String LITTLE_ENDIAN
public static String BIG_ENDIAN
public BinaryOutputStream(OutputStream out, String endian)
public BinaryOutputStream(OutputStream out, boolean endian)
public static void writeDoubleArray(OutputStream out, double[] array, String endian)
public static void appendDoubleArray(OutputStream out, double[] array, String endian)
public static void writeFloatArray(OutputStream out, float[] array, String endian)
public static void appendFloatArray(OutputStream out, float[] array, String endian)
public static void writeIntArray(OutputStream out, int[] array, String endian)
public static void appendIntArray(OutputStream out, int[] array, String endian)
public void writeIntArray(int[] array, boolean append)
array
- int[]append
- booleanpublic void writeFloatArray(float[] array, boolean append)
array
- float[]append
- booleanpublic void writeDoubleArray(double[] array, boolean append)
array
- float[]append
- booleanpublic void writeByteArray(byte[] bytes, boolean append)
bytes
- byte[]append
- booleanpublic void writeInt(int i, boolean append)
i
- intappend
- booleanpublic void writeFloat(float f, boolean append)
f
- floatappend
- booleanpublic void writeDouble(double d, boolean append)
d
- doubleappend
- booleanpublic void writeByte(byte b, boolean append)
b
- byteappend
- booleanpublic void write(int i)
write
in class OutputStream
b
- byteappend
- booleanJas4pp 1.5 © Java Analysis Studio for Particle Physics