public static Stream<byte[]> binaryStream(final String path, @javax.annotation.Nonnull final String name, final int skip, final int recordSize) throws IOException {
    @javax.annotation.Nonnull final File file = new File(path, name);
    final byte[] fileData = IOUtils.toByteArray(new BufferedInputStream(new GZIPInputStream(new BufferedInputStream(new FileInputStream(file)))));
    @javax.annotation.Nonnull final DataInputStream in = new DataInputStream(new ByteArrayInputStream(fileData));
    in.skip(skip);
    return com.simiacryptus.util.Util.toIterator(new BinaryChunkIterator(in, recordSize));
  }
public static Stream < byte [ ] > binaryStream ( final String path , @ javax . annotation . Nonnull final String name , final int skip , final int recordSize ) throws IOException { @ javax . annotation . Nonnull final File file = new File ( path , name ) ; final byte [ ] fileData = IOUtils . toByteArray ( new BufferedInputStream ( new GZIPInputStream ( new BufferedInputStream ( new FileInputStream ( file ) ) ) ) ) ; @ javax . annotation . Nonnull final DataInputStream in = new DataInputStream ( new ByteArrayInputStream ( fileData ) ) ; in . skip ( skip ) ; return com . simiacryptus . util . Util . toIterator ( new BinaryChunkIterator ( in , recordSize ) ) ; }
Binary stream stream.

@param path       the path
@param name       the name
@param skip       the skip
@param recordSize the record size
@return the stream
@throws IOException the io exception