Class ExpandableMarshalledValueByteStream

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_DOUBLING_SIZE
      Deprecated.
      Default buffer size after which if more buffer capacity is needed the buffer will grow by 25% rather than 100%
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean equals​(Object thatObject)
      Deprecated.
       
      int getMaxDoublingSize()
      Deprecated.
      Gets the highest internal buffer size after which if more capacity is needed the buffer will grow in 25% increments rather than 100%.
      int getNewBufferSize​(int curSize, int minNewSize)
      Deprecated.
      Gets the number of bytes to which the internal buffer should be resized.
      byte[] getRaw()
      Deprecated.
      Gets the internal buffer array.
      int hashCode()
      Deprecated.
       
      int size()
      Deprecated.
      Overriden only to avoid unneeded synchronization
      void write​(byte[] b, int off, int len)
      Deprecated.
       
      void write​(int b)
      Deprecated.
       
    • Field Detail

      • DEFAULT_DOUBLING_SIZE

        public static final int DEFAULT_DOUBLING_SIZE
        Deprecated.
        Default buffer size after which if more buffer capacity is needed the buffer will grow by 25% rather than 100%
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExpandableMarshalledValueByteStream

        public ExpandableMarshalledValueByteStream()
        Deprecated.
      • ExpandableMarshalledValueByteStream

        public ExpandableMarshalledValueByteStream​(int size)
        Deprecated.
      • ExpandableMarshalledValueByteStream

        public ExpandableMarshalledValueByteStream​(int size,
                                                   int maxDoublingSize)
        Deprecated.
        Creates a new byte array output stream, with a buffer capacity of the specified size, in bytes.
        Parameters:
        size - the initial size.
        maxDoublingSize - the buffer size, after which if more capacity is needed the buffer will grow by 25% rather than 100%
        Throws:
        IllegalArgumentException - if size is negative.
    • Method Detail

      • getRaw

        public final byte[] getRaw()
        Deprecated.
        Gets the internal buffer array. Note that the length of this array will almost certainly be longer than the data written to it; call size() to get the number of bytes of actual data.
        Specified by:
        getRaw in class MarshalledValueByteStream
      • write

        public final void write​(byte[] b,
                                int off,
                                int len)
        Deprecated.
      • write

        public final void write​(int b)
        Deprecated.
      • getMaxDoublingSize

        public final int getMaxDoublingSize()
        Deprecated.
        Gets the highest internal buffer size after which if more capacity is needed the buffer will grow in 25% increments rather than 100%.
      • getNewBufferSize

        public final int getNewBufferSize​(int curSize,
                                          int minNewSize)
        Deprecated.
        Gets the number of bytes to which the internal buffer should be resized.
        Parameters:
        curSize - the current number of bytes
        minNewSize - the minimum number of bytes required
        Returns:
        the size to which the internal buffer should be resized
      • size

        public final int size()
        Deprecated.
        Overriden only to avoid unneeded synchronization
        Specified by:
        size in class MarshalledValueByteStream
      • equals

        public boolean equals​(Object thatObject)
        Deprecated.
      • hashCode

        public int hashCode()
        Deprecated.