forked from I2P_Developers/i2p.i2p
Javadoc fixes
NDT log tweaks
This commit is contained in:
@ -7,7 +7,7 @@ import java.net.Socket;
|
||||
/**
|
||||
* OsfwWorker creates a thread that listens for a message from the server. It
|
||||
* functions to check if the server has sent a message that is valid and
|
||||
* sufficient to determine if the server->client direction has a fire-wall.
|
||||
* sufficient to determine if the server->client direction has a fire-wall.
|
||||
*
|
||||
* <p>
|
||||
* As part of the simple firewall test, the Server must try to connect to the
|
||||
@ -49,7 +49,7 @@ public class OsfwWorker implements Runnable {
|
||||
* @param iParamTestTime
|
||||
* Test time duration to wait for message from server
|
||||
* @param _localParam
|
||||
* Applet object used to set the result of the S->C firewall test
|
||||
* Applet object used to set the result of the S->C firewall test
|
||||
*/
|
||||
OsfwWorker(ServerSocket srvSocketParam, int iParamTestTime,
|
||||
Tcpbw100 _localParam) {
|
||||
@ -76,7 +76,7 @@ public class OsfwWorker implements Runnable {
|
||||
/**
|
||||
* run() method of this SFW Worker thread. This thread listens on the socket
|
||||
* from the server for a given time period, and checks to see if the server
|
||||
* has sent a message that is valid and sufficient to determine if the S->C
|
||||
* has sent a message that is valid and sufficient to determine if the S->C
|
||||
* direction has a fire-wall.
|
||||
* */
|
||||
public void run() {
|
||||
|
@ -563,38 +563,38 @@ public class Tcpbw100 extends JApplet implements ActionListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Client->Server fire-wall test results.
|
||||
* Get Client->Server fire-wall test results.
|
||||
*
|
||||
* @return integer indicating C->S test results
|
||||
* @return integer indicating C->S test results
|
||||
* */
|
||||
public int getC2sSFWTestResults() {
|
||||
return this._iC2sSFWResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Client->Server fire-wall test results.
|
||||
* Set Client->Server fire-wall test results.
|
||||
*
|
||||
* @param iParamC2SRes
|
||||
* integer indicating C->S test results
|
||||
* integer indicating C->S test results
|
||||
* */
|
||||
public void setC2sSFWTestResults(int iParamC2SRes) {
|
||||
this._iC2sSFWResult = iParamC2SRes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Server->Client fire-wall test results.
|
||||
* Get Server->Client fire-wall test results.
|
||||
*
|
||||
* @return integer indicating C->S test results
|
||||
* @return integer indicating C->S test results
|
||||
* */
|
||||
public int getS2cSFWTestResults() {
|
||||
return this._iS2cSFWResult;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set server->Client fire-wall test results.
|
||||
* Set server->Client fire-wall test results.
|
||||
*
|
||||
* @param iParamS2CRes
|
||||
* integer indicating C->S test results
|
||||
* integer indicating C->S test results
|
||||
* */
|
||||
public void setS2cSFWTestResults(int iParamS2CRes) {
|
||||
this._iS2cSFWResult = iParamS2CRes;
|
||||
@ -4548,7 +4548,7 @@ public class Tcpbw100 extends JApplet implements ActionListener {
|
||||
try {
|
||||
t.interrupt();
|
||||
} catch (RuntimeException re) {
|
||||
_log.warn("TG", re);
|
||||
_log.debug("TG", re);
|
||||
}
|
||||
try {
|
||||
Thread.sleep(20);
|
||||
@ -4559,7 +4559,7 @@ public class Tcpbw100 extends JApplet implements ActionListener {
|
||||
try {
|
||||
t.stop();
|
||||
} catch (RuntimeException re) {
|
||||
_log.warn("TG", re);
|
||||
_log.debug("TG", re);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -4571,7 +4571,7 @@ public class Tcpbw100 extends JApplet implements ActionListener {
|
||||
thread_group.destroy();
|
||||
break;
|
||||
}catch( Throwable e ){
|
||||
_log.warn("TG", e);
|
||||
_log.debug("TG", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ class I2PServerSocketFull implements I2PServerSocket {
|
||||
*
|
||||
* @throws I2PException if there is a problem with reading a new socket
|
||||
* from the data available (e.g. the I2PSession is closed)
|
||||
* @throws RouterRestartException (extends I2PException) if the router is apparently restarting, since 0.9.34
|
||||
* @throws net.i2p.client.streaming.RouterRestartException (extends I2PException) if the router is apparently restarting, since 0.9.34
|
||||
* @throws ConnectException if the I2PServerSocket is closed, or if interrupted.
|
||||
* Not actually thrown through 0.9.16; thrown as of 0.9.17
|
||||
* @throws SocketTimeoutException if a timeout was previously set with setSoTimeout and the timeout has been reached.
|
||||
|
@ -350,7 +350,7 @@ public class I2PSocketManagerFull implements I2PSocketManager {
|
||||
*
|
||||
* @return connected I2PSocket, or null through 0.9.16, non-null as of 0.9.17
|
||||
* @throws I2PException if session is closed
|
||||
* @throws RouterRestartException (extends I2PException) if the router is apparently restarting, since 0.9.34
|
||||
* @throws net.i2p.client.streaming.RouterRestartException (extends I2PException) if the router is apparently restarting, since 0.9.34
|
||||
* @throws ConnectException (since 0.9.17; I2PServerSocket interface always declared it)
|
||||
* @throws SocketTimeoutException if a timeout was previously set with setSoTimeout and the timeout has been reached.
|
||||
*/
|
||||
|
@ -9,10 +9,10 @@ import java.util.List;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
/**
|
||||
* |a:b:c| => |a|,|b|,|c|
|
||||
* |:| => ||,||
|
||||
* |a:| => |a|,||
|
||||
* @author FangYidong<fangyidong@yahoo.com.cn>
|
||||
* |a:b:c| => |a|,|b|,|c|
|
||||
* |:| => ||,||
|
||||
* |a:| => |a|,||
|
||||
* @author FangYidong fangyidong@yahoo.com.cn
|
||||
*/
|
||||
public class ItemList {
|
||||
private String sp=",";
|
||||
|
@ -14,7 +14,7 @@ import java.util.List;
|
||||
/**
|
||||
* A JSON array. JSONObject supports java.util.List interface.
|
||||
*
|
||||
* @author FangYidong<fangyidong@yahoo.com.cn>
|
||||
* @author FangYidong fangyidong@yahoo.com.cn
|
||||
*/
|
||||
public class JSONArray extends ArrayList implements List, JSONAware, JSONStreamAware {
|
||||
private static final long serialVersionUID = 3957988303675231981L;
|
||||
|
@ -2,7 +2,7 @@ package org.json.simple;
|
||||
|
||||
/**
|
||||
* Beans that support customized output of JSON text shall implement this interface.
|
||||
* @author FangYidong<fangyidong@yahoo.com.cn>
|
||||
* @author FangYidong fangyidong@yahoo.com.cn
|
||||
*/
|
||||
public interface JSONAware {
|
||||
/**
|
||||
|
@ -13,7 +13,7 @@ import java.util.Map;
|
||||
/**
|
||||
* A JSON object. Key value pairs are unordered. JSONObject supports java.util.Map interface.
|
||||
*
|
||||
* @author FangYidong<fangyidong@yahoo.com.cn>
|
||||
* @author FangYidong fangyidong@yahoo.com.cn
|
||||
*/
|
||||
public class JSONObject extends HashMap implements Map, JSONAware, JSONStreamAware{
|
||||
|
||||
|
@ -5,7 +5,7 @@ import java.io.Writer;
|
||||
|
||||
/**
|
||||
* Beans that support customized output of JSON text to a writer shall implement this interface.
|
||||
* @author FangYidong<fangyidong@yahoo.com.cn>
|
||||
* @author FangYidong fangyidong@yahoo.com.cn
|
||||
*/
|
||||
public interface JSONStreamAware {
|
||||
/**
|
||||
|
@ -16,7 +16,7 @@ import org.json.simple.parser.ParseException;
|
||||
|
||||
|
||||
/**
|
||||
* @author FangYidong<fangyidong@yahoo.com.cn>
|
||||
* @author FangYidong fangyidong@yahoo.com.cn
|
||||
*/
|
||||
public class JSONValue {
|
||||
/**
|
||||
|
@ -8,7 +8,7 @@ import java.util.Map;
|
||||
*
|
||||
* @see org.json.simple.parser.JSONParser#parse(java.io.Reader, ContainerFactory)
|
||||
*
|
||||
* @author FangYidong<fangyidong@yahoo.com.cn>
|
||||
* @author FangYidong fangyidong@yahoo.com.cn
|
||||
*/
|
||||
public interface ContainerFactory {
|
||||
/**
|
||||
|
@ -8,7 +8,7 @@ import java.io.IOException;
|
||||
* @see org.xml.sax.ContentHandler
|
||||
* @see org.json.simple.parser.JSONParser#parse(java.io.Reader, ContentHandler, boolean)
|
||||
*
|
||||
* @author FangYidong<fangyidong@yahoo.com.cn>
|
||||
* @author FangYidong fangyidong@yahoo.com.cn
|
||||
*/
|
||||
public interface ContentHandler {
|
||||
/**
|
||||
|
@ -18,7 +18,7 @@ import org.json.simple.JSONObject;
|
||||
/**
|
||||
* Parser for JSON text. Please note that JSONParser is NOT thread-safe.
|
||||
*
|
||||
* @author FangYidong<fangyidong@yahoo.com.cn>
|
||||
* @author FangYidong fangyidong@yahoo.com.cn
|
||||
*/
|
||||
public class JSONParser {
|
||||
public static final int S_INIT=0;
|
||||
@ -56,8 +56,6 @@ public class JSONParser {
|
||||
* Reset the parser to the initial state with a new character reader.
|
||||
*
|
||||
* @param in - The new character reader.
|
||||
* @throws IOException
|
||||
* @throws ParseException
|
||||
*/
|
||||
public void reset(Reader in){
|
||||
lexer.yyreset(in);
|
||||
|
@ -3,7 +3,7 @@ package org.json.simple.parser;
|
||||
/**
|
||||
* ParseException explains why and where the error occurs in source JSON text.
|
||||
*
|
||||
* @author FangYidong<fangyidong@yahoo.com.cn>
|
||||
* @author FangYidong fangyidong@yahoo.com.cn
|
||||
*
|
||||
*/
|
||||
public class ParseException extends Exception {
|
||||
|
@ -5,7 +5,7 @@
|
||||
package org.json.simple.parser;
|
||||
|
||||
/**
|
||||
* @author FangYidong<fangyidong@yahoo.com.cn>
|
||||
* @author FangYidong fangyidong@yahoo.com.cn
|
||||
*/
|
||||
public class Yytoken {
|
||||
public static final int TYPE_VALUE=0;//JSON primitive value: string,number,boolean,null
|
||||
|
Reference in New Issue
Block a user