/** * Throws an exception if the pos value exceeds the max value by * which the large object API can index. * * @param pos Position to write at. */ protected void assertPosition(long pos) throws SQLException { assertPosition(pos, 0); }
public synchronized byte[] getBytes(long pos, int length) throws SQLException { assertPosition(pos); lo.seek((int)(pos-1), LargeObject.SEEK_SET); return lo.read(length); }
public synchronized OutputStream setBinaryStream(long pos) throws SQLException { assertPosition(pos); LargeObject subLO = lo.copy(); subLOs.add(subLO); subLO.seek((int)(pos-1)); return subLO.getOutputStream(); }
assertPosition(start, pattern.length);
/** * Throws an exception if the pos value exceeds the max value by * which the large object API can index. * * @param pos Position to write at. */ protected void assertPosition(long pos) throws SQLException { assertPosition(pos, 0); }
/** * Throws an exception if the pos value exceeds the max value by * which the large object API can index. * * @param pos Position to write at. */ protected void assertPosition(long pos) throws SQLException { assertPosition(pos, 0); }
public synchronized byte[] getBytes(long pos, int length) throws SQLException { assertPosition(pos); lo.seek((int)(pos-1), LargeObject.SEEK_SET); return lo.read(length); }
public synchronized byte[] getBytes(long pos, int length) throws SQLException { assertPosition(pos); lo.seek((int)(pos-1), LargeObject.SEEK_SET); return lo.read(length); }
public synchronized OutputStream setBinaryStream(long pos) throws SQLException { assertPosition(pos); LargeObject subLO = lo.copy(); subLOs.add(subLO); subLO.seek((int)(pos-1)); return subLO.getOutputStream(); }
public synchronized OutputStream setBinaryStream(long pos) throws SQLException { assertPosition(pos); LargeObject subLO = lo.copy(); subLOs.add(subLO); subLO.seek((int)(pos-1)); return subLO.getOutputStream(); }
assertPosition(start, pattern.length);
assertPosition(start, pattern.length);