Class BinaryDataType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public final class BinaryDataType
    extends DataType
    User: BazylevD Date: Dec 2, 2009 Time: 7:48:33 PM
    See Also:
    Serialized Form
    • Field Detail

      • UNLIMITED_SIZE

        public static int UNLIMITED_SIZE
      • MIN_COMPRESSION

        public static int MIN_COMPRESSION
      • MAX_COMPRESSION

        public static int MAX_COMPRESSION
    • Constructor Detail

      • BinaryDataType

        public BinaryDataType​(boolean nullable,
                              int compressionLevel)
      • BinaryDataType

        public BinaryDataType​(boolean nullable,
                              int maxSize,
                              int compressionLevel)
    • Method Detail

      • getDefaultInstance

        public static BinaryDataType getDefaultInstance()
      • getBaseName

        public java.lang.String getBaseName()
        Specified by:
        getBaseName in class DataType
      • getMaxSize

        public int getMaxSize()
      • getCompressionLevel

        public int getCompressionLevel()
      • staticFormat

        public static java.lang.String staticFormat​(byte[] value)
      • staticParse

        public static byte[] staticParse​(java.lang.CharSequence text)
      • assertValidImpl

        protected void assertValidImpl​(java.lang.Object obj)
        Description copied from class: DataType
        Checks a non-null Boxed value against constraints, if any. If the object is of unsupported type, this method should throw DataType.unsupportedType(java.lang.Object).
        Specified by:
        assertValidImpl in class DataType
        Parameters:
        obj - A Boxed representation of a value.
      • toBoxedImpl

        protected java.lang.Object toBoxedImpl​(java.lang.CharSequence text)
        Description copied from class: DataType
        Parse non-null text and return an object without checking constraints.
        Specified by:
        toBoxedImpl in class DataType
      • toStringImpl

        protected java.lang.String toStringImpl​(java.lang.Object obj)
        Description copied from class: DataType
        Converts a non-null, constraint-compliant Boxed value to String.
        Specified by:
        toStringImpl in class DataType
        Parameters:
        obj - A non-null, valid value.
        Returns:
        A String representation.
      • writeTo

        public void writeTo​(java.io.DataOutputStream out)
                     throws java.io.IOException
        Overrides:
        writeTo in class DataType
        Throws:
        java.io.IOException