Interface DataOutput

All Known Subinterfaces:
ObjectOutput

public interface DataOutput
Basic data type output interface.
  • Method Details

    • writeBool

      void writeBool(boolean v) throws IOException
      Write boolean.
      Parameters:
      v - value.
      Throws:
      IOException
    • writeByte

      void writeByte(byte v) throws IOException
      Write byte.
      Parameters:
      v - value.
      Throws:
      IOException
    • writeShort

      void writeShort(short v) throws IOException
      Write short.
      Parameters:
      v - value.
      Throws:
      IOException
    • writeInt

      void writeInt(int v) throws IOException
      Write integer.
      Parameters:
      v - value.
      Throws:
      IOException
    • writeLong

      void writeLong(long v) throws IOException
      Write long.
      Parameters:
      v - value.
      Throws:
      IOException
    • writeFloat

      void writeFloat(float v) throws IOException
      Write float.
      Parameters:
      v - value.
      Throws:
      IOException
    • writeDouble

      void writeDouble(double v) throws IOException
      Write double.
      Parameters:
      v - value.
      Throws:
      IOException
    • writeUTF

      void writeUTF(String v) throws IOException
      Write string.
      Parameters:
      v - value.
      Throws:
      IOException
    • writeBytes

      void writeBytes(byte[] v) throws IOException
      Write byte array.
      Parameters:
      v - value.
      Throws:
      IOException
    • writeBytes

      void writeBytes(byte[] v, int off, int len) throws IOException
      Write byte array.
      Parameters:
      v - value.
      off - the start offset in the data.
      len - the number of bytes that are written.
      Throws:
      IOException
    • flushBuffer

      void flushBuffer() throws IOException
      Flush buffer.
      Throws:
      IOException