Documentation of 'jhplot.math.io.BinaryOutputStream' Java class.
BinaryOutputStream
jhplot.math.io

Class BinaryOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable


    public class BinaryOutputStream
    extends java.io.OutputStream
    BSD License
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String BIG_ENDIAN 
      static java.lang.String LITTLE_ENDIAN 
    • Constructor Summary

      Constructors 
      Constructor and Description
      BinaryOutputStream(java.io.OutputStream out, boolean endian) 
      BinaryOutputStream(java.io.OutputStream out, java.lang.String endian) 
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static void appendDoubleArray(java.io.OutputStream out, double[] array, java.lang.String endian) 
      static void appendFloatArray(java.io.OutputStream out, float[] array, java.lang.String endian) 
      static void appendIntArray(java.io.OutputStream out, int[] array, java.lang.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(java.io.OutputStream out, double[] array, java.lang.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(java.io.OutputStream out, float[] array, java.lang.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(java.io.OutputStream out, int[] array, java.lang.String endian) 
      • Methods inherited from class java.io.OutputStream

        close, flush, write, write
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LITTLE_ENDIAN

        public static java.lang.String LITTLE_ENDIAN
      • BIG_ENDIAN

        public static java.lang.String BIG_ENDIAN
    • Constructor Detail

      • BinaryOutputStream

        public BinaryOutputStream(java.io.OutputStream out,
                                  java.lang.String endian)
      • BinaryOutputStream

        public BinaryOutputStream(java.io.OutputStream out,
                                  boolean endian)
    • Method Detail

      • writeDoubleArray

        public static void writeDoubleArray(java.io.OutputStream out,
                                            double[] array,
                                            java.lang.String endian)
      • appendDoubleArray

        public static void appendDoubleArray(java.io.OutputStream out,
                                             double[] array,
                                             java.lang.String endian)
      • writeFloatArray

        public static void writeFloatArray(java.io.OutputStream out,
                                           float[] array,
                                           java.lang.String endian)
      • appendFloatArray

        public static void appendFloatArray(java.io.OutputStream out,
                                            float[] array,
                                            java.lang.String endian)
      • writeIntArray

        public static void writeIntArray(java.io.OutputStream out,
                                         int[] array,
                                         java.lang.String endian)
      • appendIntArray

        public static void appendIntArray(java.io.OutputStream out,
                                          int[] array,
                                          java.lang.String endian)
      • writeIntArray

        public void writeIntArray(int[] array,
                                  boolean append)
        Write an int array in a binary File
        Parameters:
        array - int[]
        append - boolean
      • writeFloatArray

        public void writeFloatArray(float[] array,
                                    boolean append)
        Write a float array in a binary File
        Parameters:
        array - float[]
        append - boolean
      • writeDoubleArray

        public void writeDoubleArray(double[] array,
                                     boolean append)
        Write a double array in a binary File
        Parameters:
        array - float[]
        append - boolean
      • writeByteArray

        public void writeByteArray(byte[] bytes,
                                   boolean append)
        Write a text in a binary File
        Parameters:
        bytes - byte[]
        append - boolean
      • writeInt

        public void writeInt(int i,
                             boolean append)
        Write an int in a binary File
        Parameters:
        i - int
        append - boolean
      • writeFloat

        public void writeFloat(float f,
                               boolean append)
        Write a float in a binary File
        Parameters:
        f - float
        append - boolean
      • writeDouble

        public void writeDouble(double d,
                                boolean append)
        Write a double in a binary File
        Parameters:
        d - double
        append - boolean
      • writeByte

        public void writeByte(byte b,
                              boolean append)
        Write a text in a binary File
        Parameters:
        b - byte
        append - boolean
      • write

        public void write(int i)
        Write a text in a binary File
        Specified by:
        write in class java.io.OutputStream
        Parameters:
        b - byte
        append - boolean

DMelt 3.0 © DataMelt by jWork.ORG