类 EndianDataOutputStream


  • public class EndianDataOutputStream
    extends Object
    作者:
    yaqiang - come from OpenJump
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void close()
      close stream*
      void flush()
      flush stream*
      void write​(byte[] b)
      Write bytes
      void write​(byte[] b, int off, int len)
      write bytes
      void writeByteBE​(int b)
      write a byte in BigEndian - this is exactly the same as the LittleEndian version since there's no endian in a single byte
      void writeByteLE​(int b)
      write a byte in LittleEndian - this is exactly the same as the BigEndian version since there's no endian in a single byte
      void writeBytesBE​(String s)
      write a set of bytes in BigEndian - this is exactly the same as the LittleEndian version since there's no endian in a single byte
      void writeBytesLE​(String s)
      write a set of bytes in LittleEndian - this is exactly the same as the BigEndian version since there's no endian in a single byte
      void writeDoubleBE​(double d)
      write a 64bit double in BigEndian
      void writeDoubleLE​(double d)
      write a 64bit double in LittleEndian
      void writeFloatBE​(float f)
      Write a float in big endian
      void writeFloatLE​(float f)
      Write a float in little endian
      void writeIntBE​(int i)
      write a 32bit int in BigEndian
      void writeIntLE​(int i)
      write a 32bit int in LittleEndian
      void writeLongBE​(long l)
      write a 64bit long in BigEndian
      void writeLongLE​(long l)
      write a 64bit long in LittleEndian
      void writeShortBE​(int s)
      write a 16bit short in BigEndian
      void writeShortLE​(int s)
      write a 16bit short in LittleEndian
    • 构造器详细资料

      • EndianDataOutputStream

        public EndianDataOutputStream​(OutputStream out)
        Creates new EndianDataOutputStream
        参数:
        out -
    • 方法详细资料

      • write

        public void write​(byte[] b)
                   throws IOException
        Write bytes
        参数:
        b - bytes
        抛出:
        IOException
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws IOException
        write bytes
        参数:
        b -
        off -
        len -
        抛出:
        IOException
      • writeByteLE

        public void writeByteLE​(int b)
                         throws IOException
        write a byte in LittleEndian - this is exactly the same as the BigEndian version since there's no endian in a single byte
        参数:
        b -
        抛出:
        IOException
      • writeByteBE

        public void writeByteBE​(int b)
                         throws IOException
        write a byte in BigEndian - this is exactly the same as the LittleEndian version since there's no endian in a single byte
        参数:
        b -
        抛出:
        IOException
      • writeBytesLE

        public void writeBytesLE​(String s)
                          throws IOException
        write a set of bytes in LittleEndian - this is exactly the same as the BigEndian version since there's no endian in a single byte
        参数:
        s -
        抛出:
        IOException
      • writeBytesBE

        public void writeBytesBE​(String s)
                          throws IOException
        write a set of bytes in BigEndian - this is exactly the same as the LittleEndian version since there's no endian in a single byte
        参数:
        s -
        抛出:
        IOException
      • writeShortBE

        public void writeShortBE​(int s)
                          throws IOException
        write a 16bit short in BigEndian
        参数:
        s -
        抛出:
        IOException
      • writeShortLE

        public void writeShortLE​(int s)
                          throws IOException
        write a 16bit short in LittleEndian
        参数:
        s -
        抛出:
        IOException
      • writeIntBE

        public void writeIntBE​(int i)
                        throws IOException
        write a 32bit int in BigEndian
        参数:
        i -
        抛出:
        IOException
      • writeIntLE

        public void writeIntLE​(int i)
                        throws IOException
        write a 32bit int in LittleEndian
        参数:
        i -
        抛出:
        IOException
      • writeLongBE

        public void writeLongBE​(long l)
                         throws IOException
        write a 64bit long in BigEndian
        参数:
        l -
        抛出:
        IOException
      • writeLongLE

        public void writeLongLE​(long l)
                         throws IOException
        write a 64bit long in LittleEndian
        参数:
        l -
        抛出:
        IOException
      • writeFloatBE

        public void writeFloatBE​(float f)
                          throws IOException
        Write a float in big endian
        参数:
        f - Float value
        抛出:
        IOException
      • writeFloatLE

        public void writeFloatLE​(float f)
                          throws IOException
        Write a float in little endian
        参数:
        f - Float value
        抛出:
        IOException
      • writeDoubleBE

        public void writeDoubleBE​(double d)
                           throws IOException
        write a 64bit double in BigEndian
        参数:
        d -
        抛出:
        IOException
      • writeDoubleLE

        public void writeDoubleLE​(double d)
                           throws IOException
        write a 64bit double in LittleEndian
        参数:
        d -
        抛出:
        IOException