Class UnicodeString

java.lang.Object
org.docx4j.org.apache.poi.hpsf.UnicodeString

@Internal class UnicodeString extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private byte[]
     
    private static org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    UnicodeString(byte[] data, int offset)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) int
     
    (package private) byte[]
     
    (package private) String
     
    (package private) boolean
    validLength(int length, byte[] data, int offset)
    Checks to see if the specified length seems valid, given the amount of data available still to read, and the requirement that the string be NULL-terminated

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      private static org.slf4j.Logger logger
    • _value

      private byte[] _value
  • Constructor Details

    • UnicodeString

      UnicodeString(byte[] data, int offset)
  • Method Details

    • validLength

      boolean validLength(int length, byte[] data, int offset)
      Checks to see if the specified length seems valid, given the amount of data available still to read, and the requirement that the string be NULL-terminated
    • getSize

      int getSize()
    • getValue

      byte[] getValue()
    • toJavaString

      String toJavaString()