/** * Keep reading until the input buffer is filled. */ private void readFully(byte b[]) throws IOException { int len = b.length; if (len < 0) throw new IndexOutOfBoundsException(); int n = 0; while (n < len) { int count = read(b, n, len - n); if (count < 0) throw new EOFException(); n += count; } }
final int nameBlockSize = dis.readInt(); final byte[] nameBlock = new byte[nameBlockSize]; if (dis.read(nameBlock) != nameBlockSize) throw new EOFException("Premature end of file reading Tabix header"); final List<String> sequenceNames = new ArrayList<String>(numSequences); int startPos = 0;
final int nameBlockSize = dis.readInt(); final byte[] nameBlock = new byte[nameBlockSize]; if (dis.read(nameBlock) != nameBlockSize) throw new EOFException("Premature end of file reading Tabix header"); final List<String> sequenceNames = new ArrayList<String>(numSequences); int startPos = 0;
/** * Keep reading until the input buffer is filled. */ private void readFully(byte b[]) throws IOException { int len = b.length; if (len < 0) throw new IndexOutOfBoundsException(); int n = 0; while (n < len) { int count = read(b, n, len - n); if (count < 0) throw new EOFException(); n += count; } }
final int nameBlockSize = dis.readInt(); final byte[] nameBlock = new byte[nameBlockSize]; if (dis.read(nameBlock) != nameBlockSize) throw new EOFException("Premature end of file reading Tabix header"); final List<String> sequenceNames = new ArrayList<String>(numSequences); int startPos = 0;
/** * Keep reading until the input buffer is filled. */ private void readFully(byte b[]) throws IOException { int len = b.length; if (len < 0) throw new IndexOutOfBoundsException(); int n = 0; while (n < len) { int count = read(b, n, len - n); if (count < 0) throw new EOFException(); n += count; } }