test_class.declarator: logger = LoggerFactory.getLogger(ModifiedUTF8CharsetTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = LoggerFactory.getLogger(ModifiedUTF8CharsetTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.declarator: nullString = "\u0000"
test_class.original_string: String nullString = "\u0000";
test_class.type: String
test_class.var_name: nullString
test_class.declarator: controlCharsString = createStringWithCharRange('\u0001', 0x20)
test_class.original_string: String controlCharsString = createStringWithCharRange('\u0001', 0x20);
test_class.type: String
test_class.var_name: controlCharsString
test_class.declarator: asciiOnlyString = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
test_class.original_string: String asciiOnlyString = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
test_class.type: String
test_class.var_name: asciiOnlyString
test_class.declarator: iso88591CharsString = createStringWithCharRange('\u0080', 128)
test_class.original_string: String iso88591CharsString = createStringWithCharRange('\u0080', 128);
test_class.type: String
test_class.var_name: iso88591CharsString
test_class.declarator: first7EFFString = createStringWithCharRange('\u0100', 0x7EFF)
test_class.original_string: String first7EFFString = createStringWithCharRange('\u0100', 0x7EFF);
test_class.type: String
test_class.var_name: first7EFFString
test_class.declarator: entireString = createStringWithCharRange('\u0000', 0x7FFF)
test_class.original_string: String entireString = createStringWithCharRange('\u0000', 0x7FFF);
test_class.type: String
test_class.var_name: entireString
test_class.declarator: upperRangeString = createStringWithCharRange('\u7FFF', 0x8000)
test_class.original_string: String upperRangeString = createStringWithCharRange('\u7FFF', 0x8000);
test_class.type: String
test_class.var_name: upperRangeString
test_class.file: ch-commons-charset/src/test/java/com/cloudhopper/commons/charset/ModifiedUTF8CharsetTest.java
test_class.identifier: ModifiedUTF8CharsetTest
test_case.body: @Test
      public void calculateByteLength() throws Exception {
          String sample = null;
          // test the incredibly fast method for calculating a Java strings UTF-8 byte length
          Assert.assertEquals(0, ModifiedUTF8Charset.calculateByteLength(null));
          Assert.assertEquals(0, ModifiedUTF8Charset.calculateByteLength(""));
          Assert.assertEquals(1, ModifiedUTF8Charset.calculateByteLength("a"));
          Assert.assertEquals(2, ModifiedUTF8Charset.calculateByteLength("\n\r"));
          sample = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
          Assert.assertEquals(sample.getBytes("UTF8").length, ModifiedUTF8Charset.calculateByteLength(sample));
          sample = "\u20ac";
          Assert.assertEquals(sample.getBytes("UTF8").length, ModifiedUTF8Charset.calculateByteLength(sample));
          sample = "\u20ac\u0623";
          Assert.assertEquals(sample.getBytes("UTF8").length, ModifiedUTF8Charset.calculateByteLength(sample));
          sample = "\u00A7\u00E5\uFFFF";
          Assert.assertEquals(sample.getBytes("UTF8").length, ModifiedUTF8Charset.calculateByteLength(sample));
      }
test_case.class_method_signature: ModifiedUTF8CharsetTest.calculateByteLength()
test_case.full_signature: @Test public void calculateByteLength()
test_case.identifier: calculateByteLength
test_case.invocations: assertEquals calculateByteLength assertEquals calculateByteLength assertEquals calculateByteLength assertEquals calculateByteLength assertEquals getBytes calculateByteLength assertEquals getBytes calculateByteLength assertEquals getBytes calculateByteLength assertEquals getBytes calculateByteLength
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void calculateByteLength()
focal_class.file: ch-commons-charset/src/main/java/com/cloudhopper/commons/charset/ModifiedUTF8Charset.java
focal_class.identifier: ModifiedUTF8Charset
focal_class.class_method_signature: ModifiedUTF8Charset.ModifiedUTF8Charset()
focal_class.full_signature: public  ModifiedUTF8Charset()
focal_class.identifier: ModifiedUTF8Charset
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ModifiedUTF8Charset()
focal_class.class_method_signature: ModifiedUTF8Charset.estimateEncodeByteLength(CharSequence str0)
focal_class.full_signature: @Override public int estimateEncodeByteLength(CharSequence str0)
focal_class.identifier: estimateEncodeByteLength
focal_class.modifiers: @Override public
focal_class.parameters: (CharSequence str0)
focal_class.return: int
focal_class.signature: int estimateEncodeByteLength(CharSequence str0)
focal_class.class_method_signature: ModifiedUTF8Charset.estimateDecodeCharLength(byte[] bytes)
focal_class.full_signature: @Override public int estimateDecodeCharLength(byte[] bytes)
focal_class.identifier: estimateDecodeCharLength
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] bytes)
focal_class.return: int
focal_class.signature: int estimateDecodeCharLength(byte[] bytes)
focal_class.class_method_signature: ModifiedUTF8Charset.encode(CharSequence charSeq)
focal_class.full_signature: @Override public byte[] encode(CharSequence charSeq)
focal_class.identifier: encode
focal_class.modifiers: @Override public
focal_class.parameters: (CharSequence charSeq)
focal_class.return: byte[]
focal_class.signature: byte[] encode(CharSequence charSeq)
focal_class.class_method_signature: ModifiedUTF8Charset.decode(byte[] bytes, StringBuilder buffer)
focal_class.full_signature: @Override public void decode(byte[] bytes, StringBuilder buffer)
focal_class.identifier: decode
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] bytes, StringBuilder buffer)
focal_class.return: void
focal_class.signature: void decode(byte[] bytes, StringBuilder buffer)
focal_class.class_method_signature: ModifiedUTF8Charset.decode(byte[] bytes)
focal_class.full_signature: @Override public String decode(byte[] bytes)
focal_class.identifier: decode
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] bytes)
focal_class.return: String
focal_class.signature: String decode(byte[] bytes)
focal_class.class_method_signature: ModifiedUTF8Charset.decode(byte[] bytes, int offset, int length)
focal_class.full_signature: public String decode(byte[] bytes, int offset, int length)
focal_class.identifier: decode
focal_class.modifiers: public
focal_class.parameters: (byte[] bytes, int offset, int length)
focal_class.return: String
focal_class.signature: String decode(byte[] bytes, int offset, int length)
focal_class.class_method_signature: ModifiedUTF8Charset.calculateByteLength(CharSequence charSeq)
focal_class.full_signature: static public int calculateByteLength(CharSequence charSeq)
focal_class.identifier: calculateByteLength
focal_class.modifiers: static public
focal_class.parameters: (CharSequence charSeq)
focal_class.return: int
focal_class.signature: int calculateByteLength(CharSequence charSeq)
focal_class.class_method_signature: ModifiedUTF8Charset.calculateByteLength(CharSequence charSeq, char[] charBuffer, int charOffset, int charLength)
focal_class.full_signature: static public int calculateByteLength(CharSequence charSeq, char[] charBuffer, int charOffset, int charLength)
focal_class.identifier: calculateByteLength
focal_class.modifiers: static public
focal_class.parameters: (CharSequence charSeq, char[] charBuffer, int charOffset, int charLength)
focal_class.return: int
focal_class.signature: int calculateByteLength(CharSequence charSeq, char[] charBuffer, int charOffset, int charLength)
focal_class.class_method_signature: ModifiedUTF8Charset.encodeToByteArray(CharSequence charSeq, char[] charBuffer, int charOffset, int charLength, byte[] byteBuffer, int byteOffset)
focal_class.full_signature: static public int encodeToByteArray(CharSequence charSeq, char[] charBuffer, int charOffset, int charLength, byte[] byteBuffer, int byteOffset)
focal_class.identifier: encodeToByteArray
focal_class.modifiers: static public
focal_class.parameters: (CharSequence charSeq, char[] charBuffer, int charOffset, int charLength, byte[] byteBuffer, int byteOffset)
focal_class.return: int
focal_class.signature: int encodeToByteArray(CharSequence charSeq, char[] charBuffer, int charOffset, int charLength, byte[] byteBuffer, int byteOffset)
focal_class.class_method_signature: ModifiedUTF8Charset.decodeToCharArray(byte[] byteBuffer, int byteOffset, int byteLength, char[] charBuffer, int charOffset)
focal_class.full_signature: static public int decodeToCharArray(byte[] byteBuffer, int byteOffset, int byteLength, char[] charBuffer, int charOffset)
focal_class.identifier: decodeToCharArray
focal_class.modifiers: static public
focal_class.parameters: (byte[] byteBuffer, int byteOffset, int byteLength, char[] charBuffer, int charOffset)
focal_class.return: int
focal_class.signature: int decodeToCharArray(byte[] byteBuffer, int byteOffset, int byteLength, char[] charBuffer, int charOffset)
focal_class.superclass: extends BaseCharset
focal_method.body: static public int calculateByteLength(CharSequence charSeq) {
          return calculateByteLength(charSeq, null, 0, 0);
      }
focal_method.class_method_signature: ModifiedUTF8Charset.calculateByteLength(CharSequence charSeq)
focal_method.full_signature: static public int calculateByteLength(CharSequence charSeq)
focal_method.identifier: calculateByteLength
focal_method.invocations: calculateByteLength
focal_method.modifiers: static public
focal_method.parameters: (CharSequence charSeq)
focal_method.return: int
focal_method.signature: int calculateByteLength(CharSequence charSeq)