javatunnel
Class Engine
java.lang.Object
|
+--javatunnel.Engine
- Direct Known Subclasses:
- GNUHTTPTunnelEngine, HTTPProxyEngine, HTTPTunnelingEngine, RedirectEngine, SSLProxyEngine
- public abstract class Engine
- extends java.lang.Object
JavaTunnel
Copyright (C) 2002 Andrés Ederra
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place - Suite 330, Boston, MA 02111-1307, USA.
Method Summary |
static void |
cleanHostsFile()
|
static java.lang.String |
getPathToHostsFile()
|
static java.lang.String |
identifyHostsSystemFilePath()
|
abstract void |
listen()
|
abstract void |
start(java.io.InputStream input,
java.io.OutputStream output)
Starts the network engine where the client is Java Code
Suitable to use JavaTunnel as library code
Engines may or not support this usage |
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Engine
public Engine()
listen
public abstract void listen()
stop
public void stop()
identifyHostsSystemFilePath
public static java.lang.String identifyHostsSystemFilePath()
cleanHostsFile
public static void cleanHostsFile()
getPathToHostsFile
public static java.lang.String getPathToHostsFile()
- Returns:
- Returns the pathToHostsFile.
start
public abstract void start(java.io.InputStream input,
java.io.OutputStream output)
throws java.lang.UnsupportedOperationException
- Starts the network engine where the client is Java Code
Suitable to use JavaTunnel as library code
Engines may or not support this usage
- Parameters:
input
- InputStream where the engine reads fromoutput
- OutputStream where the engine writes
- Throws:
java.lang.UnsupportedOperationException
- Throwed when the engine doesn't support this mode