public synchronized InputStream getBinaryStream() throws SQLException { checkFreed(); LargeObject subLO = lo.copy(); subLOs.add(subLO); subLO.seek(0, LargeObject.SEEK_SET); return subLO.getInputStream(); }
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 InputStream getBinaryStream() throws SQLException { checkFreed(); LargeObject subLO = getLo(false).copy(); addSubLO(subLO); subLO.seek(0, LargeObject.SEEK_SET); return subLO.getInputStream(); }
public synchronized OutputStream setBinaryStream(long pos) throws SQLException { assertPosition(pos); LargeObject subLO = getLo(true).copy(); addSubLO(subLO); subLO.seek((int) (pos - 1)); return subLO.getOutputStream(); }
public synchronized java.io.InputStream getBinaryStream(long pos, long length) throws SQLException { checkFreed(); LargeObject subLO = getLo(false).copy(); addSubLO(subLO); if (pos > Integer.MAX_VALUE) { subLO.seek64(pos - 1, LargeObject.SEEK_SET); } else { subLO.seek((int) pos - 1, LargeObject.SEEK_SET); } return subLO.getInputStream(length); }
public synchronized InputStream getBinaryStream() throws SQLException { checkFreed(); LargeObject subLO = lo.copy(); subLOs.add(subLO); subLO.seek(0, LargeObject.SEEK_SET); return subLO.getInputStream(); }
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 InputStream getBinaryStream() throws SQLException { checkFreed(); LargeObject subLO = lo.copy(); subLOs.add(subLO); subLO.seek(0, LargeObject.SEEK_SET); return subLO.getInputStream(); }
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(); }