Class ArrayIO

java.lang.Object
dev.quantumfusion.hyphen.io.ArrayIO
All Implemented Interfaces:
IOInterface

public final class ArrayIO extends Object implements IOInterface
ArrayIO. An IO that internally uses Array.
  • Method Details

    • create

      public static final ArrayIO create(int size)
    • create

      public static final <O> ArrayIO create(HyphenSerializer<ArrayIO,​O> serializer, O data)
    • wrap

      public static final ArrayIO wrap(byte[] array)
    • rewind

      public final void rewind()
      Specified by:
      rewind in interface IOInterface
    • pos

      public final int pos()
      Specified by:
      pos in interface IOInterface
    • close

      public final void close()
      Specified by:
      close in interface IOInterface
    • export

      public final byte[] export()
    • getBoolean

      public final boolean getBoolean()
      Specified by:
      getBoolean in interface IOInterface
    • getByte

      public final byte getByte()
      Specified by:
      getByte in interface IOInterface
    • getChar

      public final char getChar()
      Specified by:
      getChar in interface IOInterface
    • getShort

      public final short getShort()
      Specified by:
      getShort in interface IOInterface
    • getInt

      public final int getInt()
      Specified by:
      getInt in interface IOInterface
    • getLong

      public final long getLong()
      Specified by:
      getLong in interface IOInterface
    • getFloat

      public final float getFloat()
      Specified by:
      getFloat in interface IOInterface
    • getDouble

      public final double getDouble()
      Specified by:
      getDouble in interface IOInterface
    • getString

      public final String getString()
      Specified by:
      getString in interface IOInterface
    • putBoolean

      public final void putBoolean(boolean value)
      Specified by:
      putBoolean in interface IOInterface
    • putByte

      public final void putByte(byte value)
      Specified by:
      putByte in interface IOInterface
    • putChar

      public final void putChar(char value)
      Specified by:
      putChar in interface IOInterface
    • putShort

      public final void putShort(short value)
      Specified by:
      putShort in interface IOInterface
    • putInt

      public final void putInt(int value)
      Specified by:
      putInt in interface IOInterface
    • putLong

      public final void putLong(long value)
      Specified by:
      putLong in interface IOInterface
    • putFloat

      public final void putFloat(float value)
      Specified by:
      putFloat in interface IOInterface
    • putDouble

      public final void putDouble(double value)
      Specified by:
      putDouble in interface IOInterface
    • putString

      public final void putString(String value)
      Specified by:
      putString in interface IOInterface
    • getBooleanArray

      public final boolean[] getBooleanArray(int length)
      Specified by:
      getBooleanArray in interface IOInterface
    • getByteArray

      public final byte[] getByteArray(int length)
      Specified by:
      getByteArray in interface IOInterface
    • getCharArray

      public final char[] getCharArray(int length)
      Specified by:
      getCharArray in interface IOInterface
    • getShortArray

      public final short[] getShortArray(int length)
      Specified by:
      getShortArray in interface IOInterface
    • getIntArray

      public final int[] getIntArray(int length)
      Specified by:
      getIntArray in interface IOInterface
    • getLongArray

      public final long[] getLongArray(int length)
      Specified by:
      getLongArray in interface IOInterface
    • getFloatArray

      public final float[] getFloatArray(int length)
      Specified by:
      getFloatArray in interface IOInterface
    • getDoubleArray

      public final double[] getDoubleArray(int length)
      Specified by:
      getDoubleArray in interface IOInterface
    • getStringArray

      public final String[] getStringArray(int length)
      Specified by:
      getStringArray in interface IOInterface
    • putBooleanArray

      public final void putBooleanArray(boolean[] value, int length)
      Specified by:
      putBooleanArray in interface IOInterface
    • putByteArray

      public final void putByteArray(byte[] value, int length)
      Specified by:
      putByteArray in interface IOInterface
    • putCharArray

      public final void putCharArray(char[] value, int length)
      Specified by:
      putCharArray in interface IOInterface
    • putShortArray

      public final void putShortArray(short[] value, int length)
      Specified by:
      putShortArray in interface IOInterface
    • putIntArray

      public final void putIntArray(int[] value, int length)
      Specified by:
      putIntArray in interface IOInterface
    • putLongArray

      public final void putLongArray(long[] value, int length)
      Specified by:
      putLongArray in interface IOInterface
    • putFloatArray

      public final void putFloatArray(float[] value, int length)
      Specified by:
      putFloatArray in interface IOInterface
    • putDoubleArray

      public final void putDoubleArray(double[] value, int length)
      Specified by:
      putDoubleArray in interface IOInterface
    • putStringArray

      public final void putStringArray(String[] value, int length)
      Specified by:
      putStringArray in interface IOInterface