Class StringArray

java.lang.Object
org.rcsb.cif.binary.data.StringArray
All Implemented Interfaces:
EncodedData<String[]>

public class StringArray
extends Object
An array of String values.
  • Constructor Details

  • Method Details

    • getData

      public String[] getData()
      Description copied from interface: EncodedData
      Access to the underlying array of information.
      Returns:
      an int[], double[], byte[], or String[]
    • length

      public int length()
      Description copied from interface: EncodedData
      The number of elements in the wrapped array.
      Returns:
      results of array.length
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • encode

      public ByteArray encode​(StringArrayEncoding encoding)
    • getEncoding

      public Deque<Encoding<?,​?>> getEncoding()
      Description copied from interface: EncodedData
      All encodings registered for this piece of EncodedData. May be empty. May contain only partial data: e.g. adding a ByteArrayEncoding to the list will request encoding by ByteArrayCodec, this method call will subsequently fill all fields of the requested Encoding to allow for decoding.
      Specified by:
      getEncoding in interface EncodedData<D>
      Returns:
      all associated Encoding instances
    • setEncoding

      public void setEncoding​(Deque<Encoding<?,​?>> encoding)
      Description copied from interface: EncodedData
      Replace this encoding chain with a different one.
      Specified by:
      setEncoding in interface EncodedData<D>
      Parameters:
      encoding - the new encoding chain for this instance
    • hasNextDecodingStep

      public boolean hasNextDecodingStep()
      Description copied from interface: EncodedData
      Convenience method to state whether the List returned by EncodedData.getEncoding() is not empty.
      Specified by:
      hasNextDecodingStep in interface EncodedData<D>
      Returns:
      true if encoding steps are registered and need to be resolved to access decoded data