/** * Read byte array from blob. * @param b byte array to be filled * @return number of bytes read */ public int read(byte b[]) throws IOException { int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return n; } return -1; }
/** * Read single byte from blob. * @return byte read */ public int read() throws IOException { byte b[] = new byte[1]; int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return b[0]; } return -1; }
/** * Read slice of byte array from blob. * @param b byte array to be filled * @param off offset into byte array * @param len length to be read * @return number of bytes read */ public int read(byte b[], int off, int len) throws IOException { if (off + len > b.length) { len = b.length - off; } if (len < 0) { return -1; } if (len == 0) { return 0; } int n = blob.read(b, off, pos, len); if (n > 0) { pos += n; return n; } return -1; } }
/** * Read byte array from blob. * @param b byte array to be filled * @return number of bytes read */ public int read(byte b[]) throws IOException { int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return n; } return -1; }
/** * Read byte array from blob. * @param b byte array to be filled * @return number of bytes read */ public int read(byte b[]) throws IOException { int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return n; } return -1; }
/** * Read byte array from blob. * @param b byte array to be filled * @return number of bytes read */ public int read(byte b[]) throws IOException { int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return n; } return -1; }
/** * Read byte array from blob. * @param b byte array to be filled * @return number of bytes read */ public int read(byte b[]) throws IOException { int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return n; } return -1; }
/** * Read single byte from blob. * @return byte read */ public int read() throws IOException { byte b[] = new byte[1]; int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return b[0]; } return -1; }
/** * Read single byte from blob. * @return byte read */ public int read() throws IOException { byte b[] = new byte[1]; int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return b[0]; } return -1; }
/** * Read byte array from blob. * @param b byte array to be filled * @return number of bytes read */ public int read(byte b[]) throws IOException { int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return n; } return -1; }
/** * Read single byte from blob. * @return byte read */ public int read() throws IOException { byte b[] = new byte[1]; int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return b[0]; } return -1; }
/** * Read single byte from blob. * @return byte read */ public int read() throws IOException { byte b[] = new byte[1]; int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return b[0]; } return -1; }
/** * Read single byte from blob. * @return byte read */ public int read() throws IOException { byte b[] = new byte[1]; int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return b[0]; } return -1; }
/** * Read single byte from blob. * @return byte read */ public int read() throws IOException { byte b[] = new byte[1]; int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return b[0]; } return -1; }
/** * Read byte array from blob. * @param b byte array to be filled * @return number of bytes read */ public int read(byte b[]) throws IOException { int n = blob.read(b, 0, pos, b.length); if (n > 0) { pos += n; return n; } return -1; }
/** * Read slice of byte array from blob. * @param b byte array to be filled * @param off offset into byte array * @param len length to be read * @return number of bytes read */ public int read(byte b[], int off, int len) throws IOException { if (off + len > b.length) { len = b.length - off; } if (len < 0) { return -1; } if (len == 0) { return 0; } int n = blob.read(b, off, pos, len); if (n > 0) { pos += n; return n; } return -1; } }
/** * Read slice of byte array from blob. * @param b byte array to be filled * @param off offset into byte array * @param len length to be read * @return number of bytes read */ public int read(byte b[], int off, int len) throws IOException { if (off + len > b.length) { len = b.length - off; } if (len < 0) { return -1; } if (len == 0) { return 0; } int n = blob.read(b, off, pos, len); if (n > 0) { pos += n; return n; } return -1; } }
/** * Read slice of byte array from blob. * @param b byte array to be filled * @param off offset into byte array * @param len length to be read * @return number of bytes read */ public int read(byte b[], int off, int len) throws IOException { if (off + len > b.length) { len = b.length - off; } if (len < 0) { return -1; } if (len == 0) { return 0; } int n = blob.read(b, off, pos, len); if (n > 0) { pos += n; return n; } return -1; } }
/** * Read slice of byte array from blob. * @param b byte array to be filled * @param off offset into byte array * @param len length to be read * @return number of bytes read */ public int read(byte b[], int off, int len) throws IOException { if (off + len > b.length) { len = b.length - off; } if (len < 0) { return -1; } if (len == 0) { return 0; } int n = blob.read(b, off, pos, len); if (n > 0) { pos += n; return n; } return -1; } }
/** * Read slice of byte array from blob. * @param b byte array to be filled * @param off offset into byte array * @param len length to be read * @return number of bytes read */ public int read(byte b[], int off, int len) throws IOException { if (off + len > b.length) { len = b.length - off; } if (len < 0) { return -1; } if (len == 0) { return 0; } int n = blob.read(b, off, pos, len); if (n > 0) { pos += n; return n; } return -1; } }