@Test public void testContentsReader() throws BerDataValueFormatException { BerDataValue dataValue = new BerDataValue( ByteBuffer.allocate(0), ByteBuffer.wrap(HexEncoding.decode("300203040500")), BerEncoding.TAG_CLASS_UNIVERSAL, true, BerEncoding.TAG_NUMBER_SEQUENCE); BerDataValueReader reader = dataValue.contentsReader(); assertEquals(ByteBufferBerDataValueReader.class, reader.getClass()); assertByteBufferEquals(HexEncoding.decode("30020304"), reader.readDataValue().getEncoded()); assertByteBufferEquals(HexEncoding.decode("0500"), reader.readDataValue().getEncoded()); assertNull(reader.readDataValue()); }
public BerDataValueReader contentsReader() { return new ByteBufferBerDataValueReader(getEncodedContents()); }
BerDataValue { public BerDataValueReader contentsReader() { return new ByteBufferBerDataValueReader(getEncodedContents()); } }
BerDataValue { public BerDataValueReader contentsReader() { return new ByteBufferBerDataValueReader(getEncodedContents()); } BerDataValue(
            ByteBuffer encoded,
            ByteBuffer encodedContents,
            int tagClass,
            boolean constructed,
            int tagNumber); }
BerDataValue { public BerDataValueReader contentsReader() { return new ByteBufferBerDataValueReader(getEncodedContents()); } BerDataValue(
            ByteBuffer encoded,
            ByteBuffer encodedContents,
            int tagClass,
            boolean constructed,
            int tagNumber); int getTagClass(); boolean isConstructed(); int getTagNumber(); ByteBuffer getEncoded(); ByteBuffer getEncodedContents(); BerDataValueReader contentsReader(); BerDataValueReader dataValueReader(); }
BerDataValue { public BerDataValueReader contentsReader() { return new ByteBufferBerDataValueReader(getEncodedContents()); } BerDataValue(
            ByteBuffer encoded,
            ByteBuffer encodedContents,
            int tagClass,
            boolean constructed,
            int tagNumber); int getTagClass(); boolean isConstructed(); int getTagNumber(); ByteBuffer getEncoded(); ByteBuffer getEncodedContents(); BerDataValueReader contentsReader(); BerDataValueReader dataValueReader();  }