de.leechuck.java.proxy.server
Class ProtoWrapper
java.lang.Object
|
+--de.leechuck.java.proxy.server.ProtoWrapper
- public class ProtoWrapper
- extends java.lang.Object
This class used to convert a ResultSet-Object to a String.
It now writes the ResultSet in a Stream, all according to
the protocoll specification you should have received with
a copy of this proxy-server.
Field Summary |
protected java.io.PrintWriter |
out
|
protected java.lang.String |
result
|
protected java.sql.ResultSet |
RS
|
Constructor Summary |
ProtoWrapper(java.sql.ResultSet res,
java.io.PrintWriter o,
javax.net.ssl.SSLSocket sock)
The Constructor already does all the work. |
Method Summary |
char[] |
getCharArray()
Returns a char-Array |
java.lang.String |
getString()
Returns the result-String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
result
protected java.lang.String result
RS
protected java.sql.ResultSet RS
out
protected java.io.PrintWriter out
ProtoWrapper
public ProtoWrapper(java.sql.ResultSet res,
java.io.PrintWriter o,
javax.net.ssl.SSLSocket sock)
- The Constructor already does all the work. You create an
Object of this class, and all the work is done in here,
that means, the ResultSet is streamed into the OutputStream o.
- Parameters:
res
- The ResultSet to processo
- The OutputStreamsock
- The socket used by o. This is needed for aborting the opperation if the Client closes the connection while the ResultSet is still being streamed.
getString
public java.lang.String getString()
- Returns the result-String. This function is deprecated, the
result is now streamed into the PrintWriter o.
getCharArray
public char[] getCharArray()
- Returns a char-Array