Interface EndianDataOutput

  • All Superinterfaces:
    java.io.DataOutput
    All Known Implementing Classes:
    EndianNioOutput, EndianOutputStream, EndianOutputWrapper

    public interface EndianDataOutput
    extends java.io.DataOutput
    Define output streams that can deliver items in little-endian format in addition to the standard big-endian primitives. Note that the underlying UTF8 handling in the DataOutput interface uses an unsigned short prefix to UTF8 encodings containing the number of encoded bytes. The method names are inspired by Netty 4.1.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void writeCharLE​(int v)
      Little-endian counterpart to writeChar().
      void writeCharsLE​(java.lang.String v)
      Little-endian counterpart to writeChars().
      void writeDoubleLE​(double v)
      Little-endian counterpart to writeDouble().
      void writeFloatLE​(float v)
      Little-endian counterpart to writeFloat().
      void writeIntLE​(int v)
      Little-endian counterpart to writeInt().
      void writeLongLE​(long v)
      Little-endian counterpart to writeLong().
      void writeShortLE​(int v)
      Little-endian counterpart to writeShort().
      • Methods inherited from interface java.io.DataOutput

        write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
    • Method Detail

      • writeCharLE

        void writeCharLE​(int v)
                  throws java.io.IOException
        Little-endian counterpart to writeChar().
        Parameters:
        v -
        Throws:
        java.io.IOException
      • writeCharsLE

        void writeCharsLE​(java.lang.String v)
                   throws java.io.IOException
        Little-endian counterpart to writeChars().
        Parameters:
        v -
        Throws:
        java.io.IOException
      • writeDoubleLE

        void writeDoubleLE​(double v)
                    throws java.io.IOException
        Little-endian counterpart to writeDouble().
        Parameters:
        v -
        Throws:
        java.io.IOException
      • writeFloatLE

        void writeFloatLE​(float v)
                   throws java.io.IOException
        Little-endian counterpart to writeFloat().
        Parameters:
        v -
        Throws:
        java.io.IOException
      • writeShortLE

        void writeShortLE​(int v)
                   throws java.io.IOException
        Little-endian counterpart to writeShort().
        Parameters:
        v -
        Throws:
        java.io.IOException
      • writeIntLE

        void writeIntLE​(int v)
                 throws java.io.IOException
        Little-endian counterpart to writeInt().
        Parameters:
        v -
        Throws:
        java.io.IOException
      • writeLongLE

        void writeLongLE​(long v)
                  throws java.io.IOException
        Little-endian counterpart to writeLong().
        Parameters:
        v -
        Throws:
        java.io.IOException