BinaryFile
jhplot.math.io

Class BinaryFile



  • public class BinaryFileextends Object
    BSD License
    • Field Detail

      • LITTLE_ENDIAN

        public static String LITTLE_ENDIAN
      • BIG_ENDIAN

        public static String BIG_ENDIAN
    • Constructor Detail

      • BinaryFile

        public BinaryFile(File f,          String endian)
    • Method Detail

      • readDoubleArray

        public static double[] readDoubleArray(File f,                       String endian)
      • readFloatArray

        public static float[] readFloatArray(File f,                     String endian)
      • readIntArray

        public static int[] readIntArray(File f,                 String endian)
      • writeDoubleArray

        public static void writeDoubleArray(File f,                    double[] array,                    String endian)
      • appendDoubleArray

        public static void appendDoubleArray(File f,                     double[] array,                     String endian)
      • writeFloatArray

        public static void writeFloatArray(File f,                   float[] array,                   String endian)
      • appendFloatArray

        public static void appendFloatArray(File f,                    float[] array,                    String endian)
      • writeIntArray

        public static void writeIntArray(File f,                 int[] array,                 String endian)
      • appendIntArray

        public static void appendIntArray(File f,                  int[] array,                  String endian)
      • readIntArray

        public int[] readIntArray()
        Read a binary File
        Returns:
        int[]
      • readFloatArray

        public float[] readFloatArray()
        Read a binary File
        Returns:
        float[]
      • readDoubleArray

        public double[] readDoubleArray()
        Read a binary File
        Returns:
        double[]
      • readByteArray

        public byte[] readByteArray()
        Read a binary File
        Returns:
        byte[]
      • 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
      • readInt

        public int readInt()
        Read a binary File
        Returns:
        int
      • readFloat

        public float readFloat()
        Read a binary File
        Returns:
        float
      • readDouble

        public double readDouble()
        Read a binary File
        Returns:
        double
      • readByte

        public byte readByte()
        Read a binary File
        Returns:
        byte
      • 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
      • main

        public static void main(String[] args)

SCaVis 2.0 © jWork.ORG