* Streaming: Move streaming to new package (ticket #1135)

This commit is contained in:
dg2-new
2014-01-04 14:09:33 +00:00
parent 1feb317f8b
commit 2a09d5baa6
40 changed files with 70 additions and 44 deletions

View File

@@ -16,11 +16,11 @@ import java.nio.channels.SelectableChannel;
*/
public abstract class AcceptingChannel extends SelectableChannel {
abstract I2PSocket accept() throws I2PException, ConnectException;
public abstract I2PSocket accept() throws I2PException, ConnectException;
protected final I2PSocketManager _socketManager;
AcceptingChannel(I2PSocketManager manager) {
protected AcceptingChannel(I2PSocketManager manager) {
this._socketManager = manager;
}
}

View File

@@ -25,7 +25,7 @@ import net.i2p.util.Log;
public class I2PSocketManagerFactory {
public static final String PROP_MANAGER = "i2p.streaming.manager";
public static final String DEFAULT_MANAGER = "net.i2p.client.streaming.I2PSocketManagerFull";
public static final String DEFAULT_MANAGER = "net.i2p.client.streaming.impl.I2PSocketManagerFull";
/**
* Create a socket manager using a brand new destination connected to the

View File

@@ -6,7 +6,7 @@ import java.util.Properties;
* Define the configuration for streaming and verifying data on the socket.
* Use I2PSocketManager.buildOptions() to get one of these.
*/
class I2PSocketOptionsImpl implements I2PSocketOptions {
public class I2PSocketOptionsImpl implements I2PSocketOptions {
private long _connectTimeout;
private long _readTimeout;
private long _writeTimeout;
@@ -93,7 +93,7 @@ class I2PSocketOptionsImpl implements I2PSocketOptions {
}
}
protected static double getDouble(Properties opts, String name, double defaultVal) {
public static double getDouble(Properties opts, String name, double defaultVal) {
if (opts == null) return defaultVal;
String val = opts.getProperty(name);
if (val == null) {