Class LittleEndianDataOutputStream

    • Constructor Detail

      • LittleEndianDataOutputStream

        public LittleEndianDataOutputStream​(OutputStream out)
        Constructor.
        Parameters:
        out - is the stream to write inside
    • Method Detail

      • writeBEDouble

        public void writeBEDouble​(double value)
                           throws IOException
        Writes a Big Endian double on 8 bytes.
        Parameters:
        value - is the value to write
        Throws:
        IOException - on error.
      • writeBEFloat

        public void writeBEFloat​(float value)
                          throws IOException
        Writes a Big Endian float on 4 bytes.
        Parameters:
        value - is the value to write
        Throws:
        IOException - on error.
      • writeBEInt

        public void writeBEInt​(int value)
                        throws IOException
        Writes a Big Endian int on 4 bytes.
        Parameters:
        value - is the value to write
        Throws:
        IOException - on error.
      • writeBELong

        public void writeBELong​(long value)
                         throws IOException
        Writes a Big Endian long on 8 bytes.
        Parameters:
        value - is the value to write
        Throws:
        IOException - on error.
      • writeBEShort

        public void writeBEShort​(short value)
                          throws IOException
        Writes a Big Endian short on 2 bytes.
        Parameters:
        value - is the value to write
        Throws:
        IOException - on error.
      • writeLEDouble

        public void writeLEDouble​(double value)
                           throws IOException
        Writes a Little Endian double on 8 bytes.
        Parameters:
        value - is the value to write
        Throws:
        IOException - on error.
      • writeLEFloat

        public void writeLEFloat​(float value)
                          throws IOException
        Writes a Little Endian float on 4 bytes.
        Parameters:
        value - is the value to write
        Throws:
        IOException - on error.
      • writeLEInt

        public void writeLEInt​(int value)
                        throws IOException
        Writes a Little Endian int on 4 bytes.
        Parameters:
        value - is the value to write
        Throws:
        IOException - on error.
      • writeLELong

        public void writeLELong​(long value)
                         throws IOException
        Writes a Little Endian long on 8 bytes.
        Parameters:
        value - is the value to write
        Throws:
        IOException - on error.
      • writeLEShort

        public void writeLEShort​(short value)
                          throws IOException
        Writes a Little Endian short on 2 bytes.
        Parameters:
        value - is the value to write
        Throws:
        IOException - on error.