Interface XdrType

All Known Implementing Classes:
AbstractXdrType, XdrBoolean, XdrBytes, XdrEnumerated, XdrInteger, XdrLong, XdrSimple, XdrString, XdrStructType, XdrUnion, XdrUnsignedInteger

public interface XdrType
The ASN1 type interface for all ASN1 types.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decode(byte[] content)
    Decode the content bytes into this type.
    void
    decode(ByteBuffer content)
    Decode the content bytes into this type.
    byte[]
    Encode the type, by recursively.
    void
    Encode the type, by recursively, using the provided buffer.
    int
    Get length of encoding bytes by just calculating without real encoding.
  • Method Details

    • encodingLength

      int encodingLength() throws IOException
      Get length of encoding bytes by just calculating without real encoding. Generally it's called to prepare for the encoding buffer.
      Returns:
      length of encoding bytes
      Throws:
      IOException - e
    • encode

      byte[] encode() throws IOException
      Encode the type, by recursively.
      Returns:
      encoded bytes
      Throws:
      IOException - e
    • encode

      void encode(ByteBuffer buffer) throws IOException
      Encode the type, by recursively, using the provided buffer.
      Parameters:
      buffer - The byte buffer
      Throws:
      IOException - e
    • decode

      void decode(byte[] content) throws IOException
      Decode the content bytes into this type.
      Parameters:
      content - The content bytes
      Throws:
      IOException - e
    • decode

      void decode(ByteBuffer content) throws IOException
      Decode the content bytes into this type.
      Parameters:
      content - The content bytes
      Throws:
      IOException - e