/** * Creates an instance by converting the stream to a byte array. * * @param stream the stream from which to acquire bytes. * @since 1.1 */ public SimpleByteSource(InputStream stream) { this.bytes = new BytesHelper().getBytes(stream); }
public byte[] getBytes(File file) { return toBytes(file); }
public byte[] getBytes(File file) { return toBytes(file); }
public byte[] getBytes(InputStream stream) { return toBytes(stream); } }
/** * Creates an instance by converting the stream to a byte array. * * @param stream the stream from which to acquire bytes. * @since 1.1 */ public SimpleByteSource(InputStream stream) { this.bytes = new BytesHelper().getBytes(stream); }
public byte[] getBytes(InputStream stream) { return toBytes(stream); } }
/** * Creates an instance by converting the file to a byte array. * * @param file the file from which to acquire bytes. * @since 1.1 */ public SimpleByteSource(File file) { this.bytes = new BytesHelper().getBytes(file); }
/** * Creates an instance by converting the file to a byte array. * * @param file the file from which to acquire bytes. * @since 1.1 */ public SimpleByteSource(File file) { this.bytes = new BytesHelper().getBytes(file); }
public byte[] getBytes(File file) { return toBytes(file); }
public byte[] getBytes(InputStream stream) { return toBytes(stream); } }
/** * Creates an instance by converting the stream to a byte array. * * @param stream the stream from which to acquire bytes. * @since 1.1 */ public SimpleByteSource(InputStream stream) { this.bytes = new BytesHelper().getBytes(stream); }
/** * Creates an instance by converting the file to a byte array. * * @param file the file from which to acquire bytes. * @since 1.1 */ public SimpleByteSource(File file) { this.bytes = new BytesHelper().getBytes(file); }