Package hec.io

Class EndianOutputStream

All Implemented Interfaces:
EndianTypes, Closeable, DataOutput, Flushable, AutoCloseable

public class EndianOutputStream extends DataOutputStream implements EndianTypes
  • Constructor Details

    • EndianOutputStream

      public EndianOutputStream(OutputStream is)
      constructors
  • Method Details

    • writeShort

      public final void writeShort(int type, short s) throws IOException
      like RandomAcessFile.writeShort except little endian.
      Throws:
      IOException
    • writeUnsignedShort

      public final void writeUnsignedShort(int type, short us) throws IOException
      like RandomAcessFile.writeUnsignedShort except little endian. Note, returns int even though it writes a short.
      Throws:
      IOException
    • writeChar

      public final void writeChar(int type, char c) throws IOException
      like RandomAcessFile.writeChar except little endian.
      Throws:
      IOException
    • writeInt

      public final void writeInt(int type, int i) throws IOException
      like RandomAcessFile.writeInt except little endian.
      Throws:
      IOException
    • writeLong

      public final void writeLong(int type, long l) throws IOException
      like RandomAcessFile.writeLong except little endian.
      Throws:
      IOException
    • writeFloat

      public final void writeFloat(int type, float f) throws IOException
      like RandomAcessFile.writeFloat except little endian.
      Throws:
      IOException
    • writeDouble

      public final void writeDouble(int type, double d) throws IOException
      like RandomAcessFile.writeDouble except little endian.
      Throws:
      IOException