[Fb-contrib-commit] fb-contrib/samples JVR_Sample.java,NONE,1.1
Brought to you by:
dbrosius
From: Dave B. <dbr...@us...> - 2006-03-06 04:16:41
|
Update of /cvsroot/fb-contrib/fb-contrib/samples In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22371/samples Added Files: JVR_Sample.java Log Message: initial checkin, new JVR detector --- NEW FILE: JVR_Sample.java --- import java.io.InputStream; import java.io.OutputStream; import java.sql.Blob; import java.sql.ResultSet; import java.sql.SQLException; public class JVR_Sample { public String getBlobAsString(ResultSet rs) throws SQLException { VendorBlob vb = (VendorBlob)rs.getBlob(1); return vb.convertBlobToString(); } } class VendorBlob implements Blob { public String convertBlobToString() { return "Booya"; } public InputStream getBinaryStream() throws SQLException { return null; } public byte[] getBytes(long arg0, int arg1) throws SQLException { return null; } public long length() throws SQLException { return 0; } public long position(Blob arg0, long arg1) throws SQLException { return 0; } public long position(byte[] arg0, long arg1) throws SQLException { return 0; } public OutputStream setBinaryStream(long arg0) throws SQLException { return null; } public int setBytes(long arg0, byte[] arg1, int arg2, int arg3) throws SQLException { return 0; } public int setBytes(long arg0, byte[] arg1) throws SQLException { return 0; } public void truncate(long arg0) throws SQLException { } } |