接口 DataOutput

  • 所有已知子接口:
    ObjectOutput

    public interface DataOutput
    Basic data type output interface.
    • 方法详细资料

      • writeBool

        void writeBool​(boolean v)
                throws IOException
        Write boolean.
        参数:
        v - value.
        抛出:
        IOException
      • writeShort

        void writeShort​(short v)
                 throws IOException
        Write short.
        参数:
        v - value.
        抛出:
        IOException
      • writeFloat

        void writeFloat​(float v)
                 throws IOException
        Write float.
        参数:
        v - value.
        抛出:
        IOException
      • writeDouble

        void writeDouble​(double v)
                  throws IOException
        Write double.
        参数:
        v - value.
        抛出:
        IOException
      • writeBytes

        void writeBytes​(byte[] v)
                 throws IOException
        Write byte array.
        参数:
        v - value.
        抛出:
        IOException
      • writeBytes

        void writeBytes​(byte[] v,
                        int off,
                        int len)
                 throws IOException
        Write byte array.
        参数:
        v - value.
        off - the start offset in the data.
        len - the number of bytes that are written.
        抛出:
        IOException