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(); }
final byte[] blob = new byte[length]; buffer.read(blob, 0, blob.length); attributes[i] = new BlobAttribute(name, blob, offset); continue;
final byte[] blob = new byte[length]; buffer.read(blob, 0, blob.length); attributes[i] = new BlobAttribute(name, blob, offset); continue;
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; }
final byte[] blob = new byte[length]; buffer.read(blob, 0, blob.length); attributes[i] = new BlobAttribute(name, blob, offset); continue;
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; }
final int offset = buffer.position(); buffer.read(blob, 0, blob.length); return new BlobAttribute(name, blob, offset);
blobAttribute.getData(), 0, buffer.array(), attribute.getName(), buffer, blobAttribute.getDataOffset(), attribute.getLength()
final int offset = buffer.position(); buffer.read(blob, 0, blob.length); return new BlobAttribute(name, blob, offset);
blobAttribute.getData(), 0, buffer.array(), attribute.getName(), buffer, blobAttribute.getDataOffset(), attribute.getLength()
final int offset = buffer.position(); buffer.read(blob, 0, blob.length); return new BlobAttribute(name, blob, offset);
blobAttribute.getData(), 0, buffer.array(), attribute.getName(), buffer, blobAttribute.getDataOffset(), attribute.getLength()
final byte[] blob = new byte[length]; buffer.read(blob, 0, blob.length); return new BlobAttribute(name, blob, offset);
final byte[] blob = new byte[length]; buffer.read(blob, 0, blob.length); return new BlobAttribute(name, blob, offset);
final byte[] blob = new byte[length]; buffer.read(blob, 0, blob.length); return new BlobAttribute(name, blob, offset);