Class StringPoolChunk.StringPoolStyle

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      byte[] toByteArray()
      Converts this resource into an array of bytes representation.
      byte[] toByteArray​(boolean shrink)
      Converts this resource into an array of bytes representation.
      java.lang.String toString()
      Returns a brief description of the contents of this style.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • toByteArray

        public byte[] toByteArray()
                           throws java.io.IOException
        Description copied from interface: SerializableResource
        Converts this resource into an array of bytes representation.
        Specified by:
        toByteArray in interface SerializableResource
        Returns:
        An array of bytes representing this resource.
        Throws:
        java.io.IOException
      • toByteArray

        public byte[] toByteArray​(boolean shrink)
                           throws java.io.IOException
        Description copied from interface: SerializableResource
        Converts this resource into an array of bytes representation.
        Specified by:
        toByteArray in interface SerializableResource
        Parameters:
        shrink - True if, when converting to a byte array, this resource can modify the returned bytes in an effort to reduce the size.
        Returns:
        An array of bytes representing this resource.
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Returns a brief description of the contents of this style. The representation of this information is subject to change, but below is a typical example:
        "StringPoolStyle{spans=[StringPoolSpan{foo, start=0, stop=5}, ...]}"
        Overrides:
        toString in class java.lang.Object