Interface ByteArrayDataOutput

All Superinterfaces:
DataOutput

@Deprecated(since="2022-12-01") public interface ByteArrayDataOutput extends DataOutput
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
An extension of DataOutput for writing to in-memory byte arrays; its methods offer identical functionality but do not throw IOException.
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Deprecated.
    Returns the contents that have been written to this instance, as a byte array.
    void
    write(byte[] b)
    Deprecated.
     
    void
    write(byte[] b, int off, int len)
    Deprecated.
     
    void
    write(int b)
    Deprecated.
     
    void
    writeBoolean(boolean v)
    Deprecated.
     
    void
    writeByte(int v)
    Deprecated.
     
    void
    Deprecated.
    This method is dangerous as it discards the high byte of every character.
    void
    writeChar(int v)
    Deprecated.
     
    void
    Deprecated.
     
    void
    writeDouble(double v)
    Deprecated.
     
    void
    writeFloat(float v)
    Deprecated.
     
    void
    writeInt(int v)
    Deprecated.
     
    void
    writeLong(long v)
    Deprecated.
     
    void
    writeShort(int v)
    Deprecated.
     
    void
    Deprecated.
     
  • Method Details

    • write

      void write(int b)
      Deprecated.
      Specified by:
      write in interface DataOutput
    • write

      void write(byte[] b)
      Deprecated.
      Specified by:
      write in interface DataOutput
    • write

      void write(byte[] b, int off, int len)
      Deprecated.
      Specified by:
      write in interface DataOutput
    • writeBoolean

      void writeBoolean(boolean v)
      Deprecated.
      Specified by:
      writeBoolean in interface DataOutput
    • writeByte

      void writeByte(int v)
      Deprecated.
      Specified by:
      writeByte in interface DataOutput
    • writeShort

      void writeShort(int v)
      Deprecated.
      Specified by:
      writeShort in interface DataOutput
    • writeChar

      void writeChar(int v)
      Deprecated.
      Specified by:
      writeChar in interface DataOutput
    • writeInt

      void writeInt(int v)
      Deprecated.
      Specified by:
      writeInt in interface DataOutput
    • writeLong

      void writeLong(long v)
      Deprecated.
      Specified by:
      writeLong in interface DataOutput
    • writeFloat

      void writeFloat(float v)
      Deprecated.
      Specified by:
      writeFloat in interface DataOutput
    • writeDouble

      void writeDouble(double v)
      Deprecated.
      Specified by:
      writeDouble in interface DataOutput
    • writeChars

      void writeChars(String s)
      Deprecated.
      Specified by:
      writeChars in interface DataOutput
    • writeUTF

      void writeUTF(String s)
      Deprecated.
      Specified by:
      writeUTF in interface DataOutput
    • writeBytes

      @Deprecated void writeBytes(String s)
      Deprecated.
      This method is dangerous as it discards the high byte of every character. For UTF-8, use write(s.getBytes(Charsets.UTF_8)).
      Specified by:
      writeBytes in interface DataOutput
    • toByteArray

      byte[] toByteArray()
      Deprecated.
      Returns the contents that have been written to this instance, as a byte array.