public Decoders() { this.d1 = new BinaryDecoder(new byte[0], 0, 0); this.d2 = new BinaryDecoder(new byte[0], 0, 0); } public void set(byte[] data1, int off1, int len1,
public Decoders() { this.d1 = new BinaryDecoder(new byte[0], 0, 0); this.d2 = new BinaryDecoder(new byte[0], 0, 0); } public void set(byte[] data1, int off1, int len1,
public HashData() { this.decoder = new BinaryDecoder(new byte[0], 0, 0); } public void set(byte[] bytes, int start, int len) {
public HashData() { this.decoder = new BinaryDecoder(new byte[0], 0, 0); } public void set(byte[] bytes, int start, int len) {
/** @deprecated use {@link #binaryDecoder(byte[], int, int, BinaryDecoder)} * instead */ @Deprecated public BinaryDecoder createBinaryDecoder(byte[] bytes, int offset, int length, BinaryDecoder reuse) { if (null == reuse || !reuse.getClass().equals(BinaryDecoder.class)) { return new BinaryDecoder(bytes, offset, length); } else { return reuse.configure(bytes, offset, length); } }
/** @deprecated use {@link #binaryDecoder(byte[], int, int, BinaryDecoder)} * instead */ @Deprecated public BinaryDecoder createBinaryDecoder(byte[] bytes, int offset, int length, BinaryDecoder reuse) { if (null == reuse || !reuse.getClass().equals(BinaryDecoder.class)) { return new BinaryDecoder(bytes, offset, length); } else { return reuse.configure(bytes, offset, length); } }
/** * Creates or reinitializes a {@link BinaryDecoder} with the byte array * provided as the source of data. If <i>reuse</i> is provided, it will * attempt to reinitialize <i>reuse</i> to the new byte array. This instance * will use the provided byte array as its buffer. * <p/> * {@link BinaryDecoder#inputStream()} provides a view on the data that is * buffer-aware and can provide a view of the data not yet read by Decoder API * methods. * * @param bytes The byte array to initialize to * @param offset The offset to start reading from * @param length The maximum number of bytes to read from the byte array * @param reuse The BinaryDecoder to attempt to reinitialize. if null a new * BinaryDecoder is created. * @return A BinaryDecoder that uses <i>bytes</i> as its source of data. If * <i>reuse</i> is null, this will be a new instance. <i>reuse</i> may * be reinitialized if appropriate, otherwise a new instance is * returned. Clients must not assume that <i>reuse</i> is * reinitialized and returned. */ public BinaryDecoder binaryDecoder(byte[] bytes, int offset, int length, BinaryDecoder reuse) { if (null == reuse || !reuse.getClass().equals(BinaryDecoder.class)) { return new BinaryDecoder(bytes, offset, length); } else { return reuse.configure(bytes, offset, length); } }
/** * Creates or reinitializes a {@link BinaryDecoder} with the byte array * provided as the source of data. If <i>reuse</i> is provided, it will * attempt to reinitialize <i>reuse</i> to the new byte array. This instance * will use the provided byte array as its buffer. * <p/> * {@link BinaryDecoder#inputStream()} provides a view on the data that is * buffer-aware and can provide a view of the data not yet read by Decoder API * methods. * * @param bytes The byte array to initialize to * @param offset The offset to start reading from * @param length The maximum number of bytes to read from the byte array * @param reuse The BinaryDecoder to attempt to reinitialize. if null a new * BinaryDecoder is created. * @return A BinaryDecoder that uses <i>bytes</i> as its source of data. If * <i>reuse</i> is null, this will be a new instance. <i>reuse</i> may * be reinitialized if appropriate, otherwise a new instance is * returned. Clients must not assume that <i>reuse</i> is * reinitialized and returned. */ public BinaryDecoder binaryDecoder(byte[] bytes, int offset, int length, BinaryDecoder reuse) { if (null == reuse || !reuse.getClass().equals(BinaryDecoder.class)) { return new BinaryDecoder(bytes, offset, length); } else { return reuse.configure(bytes, offset, length); } }
return new BinaryDecoder(in, binaryDecoderBufferSize); } else { return ((BinaryDecoder)reuse).configure(in, binaryDecoderBufferSize);
return new BinaryDecoder(in, binaryDecoderBufferSize); } else { return ((BinaryDecoder)reuse).configure(in, binaryDecoderBufferSize);
public Decoders() { this.d1 = new BinaryDecoder(new byte[0], 0, 0); this.d2 = new BinaryDecoder(new byte[0], 0, 0); } public void set(byte[] data1, int off1, int len1,
public Decoders() { this.d1 = new BinaryDecoder(new byte[0], 0, 0); this.d2 = new BinaryDecoder(new byte[0], 0, 0); } public void set(byte[] data1, int off1, int len1,
public HashData() { this.decoder = new BinaryDecoder(new byte[0], 0, 0); } public void set(byte[] bytes, int start, int len) {
public HashData() { this.decoder = new BinaryDecoder(new byte[0], 0, 0); } public void set(byte[] bytes, int start, int len) {
/** @deprecated use {@link #binaryDecoder(byte[], int, int, BinaryDecoder)} * instead */ @Deprecated public BinaryDecoder createBinaryDecoder(byte[] bytes, int offset, int length, BinaryDecoder reuse) { if (null == reuse || !reuse.getClass().equals(BinaryDecoder.class)) { return new BinaryDecoder(bytes, offset, length); } else { return reuse.configure(bytes, offset, length); } }
public Decoders() { this.d1 = new BinaryDecoder(new byte[0], 0, 0); this.d2 = new BinaryDecoder(new byte[0], 0, 0); this.b1 = d1.getBufferAccessor(); this.b2 = d2.getBufferAccessor(); } public void set(byte[] data1, int off1, int len1,
public Decoders() { this.d1 = new BinaryDecoder(new byte[0], 0, 0); this.d2 = new BinaryDecoder(new byte[0], 0, 0); this.b1 = d1.getBufferAccessor(); this.b2 = d2.getBufferAccessor(); } public void set(byte[] data1, int off1, int len1,
/** @deprecated use {@link #binaryDecoder(byte[], int, int, BinaryDecoder)} * instead */ @Deprecated public BinaryDecoder createBinaryDecoder(byte[] bytes, int offset, int length, BinaryDecoder reuse) { if (null == reuse || !reuse.getClass().equals(BinaryDecoder.class)) { return new BinaryDecoder(bytes, offset, length); } else { return reuse.configure(bytes, offset, length); } }
public HashData() { this.decoder = new BinaryDecoder(new byte[0], 0, 0); this.bytes = decoder.getBufferAccessor(); } public void set(byte[] bytes, int start, int len) {
return new BinaryDecoder(in, binaryDecoderBufferSize); } else { return ((BinaryDecoder)reuse).configure(in, binaryDecoderBufferSize);