Class UnsynchronizedByteArrayInputStream.Builder

All Implemented Interfaces:
IOSupplier<UnsynchronizedByteArrayInputStream>
Enclosing class:
UnsynchronizedByteArrayInputStream

Builds a new UnsynchronizedByteArrayInputStream.

Using a Byte Array:


 UnsynchronizedByteArrayInputStream s = UnsynchronizedByteArrayInputStream.builder()
   .setByteArray(byteArray)
   .setOffset(0)
   .setLength(byteArray.length)
   .get();
 
 

Using File IO:


 UnsynchronizedByteArrayInputStream s = UnsynchronizedByteArrayInputStream.builder()
   .setFile(file)
   .setOffset(0)
   .setLength(byteArray.length)
   .get();
 
 

Using NIO Path:


 UnsynchronizedByteArrayInputStream s = UnsynchronizedByteArrayInputStream.builder()
   .setPath(path)
   .setOffset(0)
   .setLength(byteArray.length)
   .get();
 
 
See Also: