Interface ByteArrayDataOutput

  • All Superinterfaces:
    java.io.DataOutput

    @Deprecated(since="2022-12-01")
    public interface ByteArrayDataOutput
    extends java.io.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

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      byte[] toByteArray()
      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 writeBytes​(java.lang.String s)
      Deprecated.
      This method is dangerous as it discards the high byte of every character.
      void writeChar​(int v)
      Deprecated.
       
      void writeChars​(java.lang.String s)
      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 writeUTF​(java.lang.String s)
      Deprecated.
       
    • Method Detail

      • write

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

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

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

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

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

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

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

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

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

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

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

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

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

        @Deprecated
        void writeBytes​(java.lang.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 java.io.DataOutput
      • toByteArray

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