Class ByteWName


  • public final class ByteWName
    extends WName
    This class is used to represent all names that are to be serialized to byte streams, independent of specific encoding used (they will be stored on per-encoding symbol tables however).
    • Field Detail

      • _bytes

        final byte[] _bytes
    • Constructor Detail

      • ByteWName

        protected ByteWName​(java.lang.String ln,
                            byte[] bytes)
      • ByteWName

        protected ByteWName​(java.lang.String prefix,
                            java.lang.String ln,
                            byte[] bytes)
    • Method Detail

      • serializedLength

        public final int serializedLength()
        Specified by:
        serializedLength in class WName
        Returns:
        Length of full (qualified) name, in native serialization units (bytes or characters)
      • appendBytes

        public int appendBytes​(byte[] buffer,
                               int offset)
        Specified by:
        appendBytes in class WName
      • writeBytes

        public void writeBytes​(java.io.OutputStream out)
                        throws java.io.IOException
        Specified by:
        writeBytes in class WName
        Throws:
        java.io.IOException
      • appendChars

        public int appendChars​(char[] buffer,
                               int offset)
        Specified by:
        appendChars in class WName
      • writeChars

        public void writeChars​(java.io.Writer w)
                        throws java.io.IOException
        Specified by:
        writeChars in class WName
        Throws:
        java.io.IOException