@Test void testSpacePaddedEmptyString() { StringPaddingHandler spacePadded = new SpacePadded(); ByteBuffer byteBuffer = ByteBuffer.allocate(4); byteBuffer.put(" ".getBytes(US_ASCII)); byteBuffer.rewind(); assertThat(byteBuffer.limit(), is(4)); spacePadded.setBufferLimit(byteBuffer); assertThat(byteBuffer.limit(), is(0)); assertThat(US_ASCII.decode(byteBuffer).toString(), is("")); }
@Override public String toString() { return "StringData{" + "paddingType=" + paddingType + ", charset=" + charset + '}'; }
StringData extends DataType { @Override public String toString() { return "StringData{" + "paddingType=" + paddingType + ", charset=" + charset + '}'; } }
StringData extends DataType { @Override public String toString() { return "StringData{" + "paddingType=" + paddingType + ", charset=" + charset + '}'; } StringData(ByteBuffer bb); }
StringData extends DataType { @Override public String toString() { return "StringData{" + "paddingType=" + paddingType + ", charset=" + charset + '}'; } StringData(ByteBuffer bb); @Override Object fillData(ByteBuffer buffer, int[] dimensions, HdfFileChannel hdfFc); PaddingType getPaddingType(); StringPaddingHandler getStringPaddingHandler(); Charset getCharset(); @Override Class<?> getJavaType(); @Override String toString(); }
StringData extends DataType { @Override public String toString() { return "StringData{" + "paddingType=" + paddingType + ", charset=" + charset + '}'; } StringData(ByteBuffer bb); @Override Object fillData(ByteBuffer buffer, int[] dimensions, HdfFileChannel hdfFc); PaddingType getPaddingType(); StringPaddingHandler getStringPaddingHandler(); Charset getCharset(); @Override Class<?> getJavaType(); @Override String toString();  }