程序包 proguard.io

类 RuntimeDataOutput


  • public class RuntimeDataOutput
    extends java.lang.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.

    • 构造器概要

      构造器 
      构造器 说明
      RuntimeDataOutput​(java.io.DataOutput dataOutput)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void write​(byte[] b)  
      void write​(byte[] b, int off, int len)  
      void write​(int b)  
      void writeBoolean​(boolean v)  
      void writeByte​(int v)  
      void writeBytes​(java.lang.String s)  
      void writeChar​(int v)  
      void writeChars​(java.lang.String s)  
      void writeDouble​(double v)  
      void writeFloat​(float v)  
      void writeInt​(int v)  
      void writeLong​(long v)  
      void writeShort​(int v)  
      void writeSignedShort​(int v)
      Checks if the given value is a signed short value before writing it.
      void writeUnsignedShort​(int v)
      Checks if the given value is an unsigned short value before writing it.
      void writeUTF​(java.lang.String str)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • RuntimeDataOutput

        public RuntimeDataOutput​(java.io.DataOutput dataOutput)
    • 方法详细资料

      • 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​(java.lang.String s)
      • writeChar

        public void writeChar​(int v)
      • writeChars

        public void writeChars​(java.lang.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.
        抛出:
        java.lang.IllegalArgumentException - if the value is not an unsigned short value.
        另请参阅:
        writeShort(int)
      • writeSignedShort

        public void writeSignedShort​(int v)
        Checks if the given value is a signed short value before writing it.
        抛出:
        java.lang.IllegalArgumentException - if the value is not a signed short value.
        另请参阅:
        writeShort(int)
      • writeShort

        public void writeShort​(int v)
      • writeUTF

        public void writeUTF​(java.lang.String str)