Package proguard.io

Class RuntimeDataOutput

java.lang.Object
proguard.io.RuntimeDataOutput

public class RuntimeDataOutput extends Object
This class delegates its method calls to the corresponding DataOutput methods, converting its IOExceptions to RuntimeExceptions.

The class provides two convenience methods that additionally check whether the written values are unsigned resp. signed short values before writing them.

  • Constructor Details

    • RuntimeDataOutput

      public RuntimeDataOutput(DataOutput dataOutput)
  • Method Details

    • write

      public void write(byte[] b)
    • write

      public void write(byte[] b, int off, int len)
    • write

      public void write(int b)
    • writeBoolean

      public void writeBoolean(boolean v)
    • writeByte

      public void writeByte(int v)
    • writeBytes

      public void writeBytes(String s)
    • writeChar

      public void writeChar(int v)
    • writeChars

      public void writeChars(String s)
    • writeDouble

      public void writeDouble(double v)
    • writeFloat

      public void writeFloat(float v)
    • writeInt

      public void writeInt(int v)
    • writeLong

      public void writeLong(long v)
    • writeUnsignedShort

      public void writeUnsignedShort(int v)
      Checks if the given value is an unsigned short value before writing it.
      Throws:
      IllegalArgumentException - if the value is not an unsigned short value.
      See Also:
    • writeSignedShort

      public void writeSignedShort(int v)
      Checks if the given value is a signed short value before writing it.
      Throws:
      IllegalArgumentException - if the value is not a signed short value.
      See Also:
    • writeShort

      public void writeShort(int v)
    • writeUTF

      public void writeUTF(String str)