protected final SourceAttribute inflateAttribute(final Buffer buffer, final SourceAttribute attribute) { if (attribute instanceof BlobAttribute) { buffer.reset(attribute.getLength()); final BlobAttribute blobAttribute = (BlobAttribute) attribute; System.arraycopy( blobAttribute.getData(), 0, buffer.array(), 0, attribute.getLength() ); return readAttributeCore( attribute.getName(), buffer, blobAttribute.getDataOffset(), attribute.getLength() ); } return attribute; }
private void writeBlobAttribute(final ITextOutput output, final BlobAttribute attribute) { output.writeAttribute(attribute.getName()); output.write(":"); for (final byte r : attribute.getData()) { final int b = r & 0xFF; output.write(' '); if (b < 0x10) { output.writeLiteral('0'); } else { output.writeLiteral(HEX_CHARS[b >> 4]); } output.writeLiteral(HEX_CHARS[b & 0xF]); } output.writeLine(); }
protected final SourceAttribute inflateAttribute(final Buffer buffer, final SourceAttribute attribute) { if (attribute instanceof BlobAttribute) { buffer.reset(attribute.getLength()); final BlobAttribute blobAttribute = (BlobAttribute) attribute; System.arraycopy( blobAttribute.getData(), 0, buffer.array(), 0, attribute.getLength() ); return readAttributeCore( attribute.getName(), buffer, blobAttribute.getDataOffset(), attribute.getLength() ); } return attribute; }
protected final SourceAttribute inflateAttribute(final Buffer buffer, final SourceAttribute attribute) { if (attribute instanceof BlobAttribute) { buffer.reset(attribute.getLength()); final BlobAttribute blobAttribute = (BlobAttribute) attribute; System.arraycopy( blobAttribute.getData(), 0, buffer.array(), 0, attribute.getLength() ); return readAttributeCore( attribute.getName(), buffer, blobAttribute.getDataOffset(), attribute.getLength() ); } return attribute; }
blobAttribute.getData(), 0, buffer.array(),
blobAttribute.getData(), 0, buffer.array(),
blobAttribute.getData(), 0, buffer.array(),