程序包 org.xmeta.codes
类 TxtCoder
- java.lang.Object
-
- org.xmeta.codes.TxtCoder
-
public class TxtCoder extends Object
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringSTRING_ENCODINGstatic charTYPE_BIGDECIMALstatic charTYPE_BIGINTEGERstatic charTYPE_BOOLEANstatic charTYPE_BYTEstatic charTYPE_BYTESstatic charTYPE_CHARstatic charTYPE_DATEstatic charTYPE_DOUBLEstatic charTYPE_FLOATstatic charTYPE_INTstatic charTYPE_LASTMODIFIEDstatic charTYPE_LONGstatic charTYPE_NODEstatic charTYPE_OBJECTstatic charTYPE_SHORTstatic charTYPE_STRINGstatic charTYPE_STRINGS
-
构造器概要
构造器 构造器 说明 TxtCoder()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static Thingdecode(Thing thing, InputStream input, boolean full, long lastModified)解码。static voidencode(Thing thing, PrintWriter out, Map<Thing,String> context)编码事物。protected static voidencodeName(PrintWriter out, String name, char type, String ident)protected static voidencodeString(String name, String value, PrintWriter out, String ident)
-
-
-
字段详细资料
-
TYPE_LASTMODIFIED
public static final char TYPE_LASTMODIFIED
- 另请参阅:
- 常量字段值
-
TYPE_NODE
public static final char TYPE_NODE
- 另请参阅:
- 常量字段值
-
TYPE_STRING
public static final char TYPE_STRING
- 另请参阅:
- 常量字段值
-
TYPE_STRINGS
public static final char TYPE_STRINGS
- 另请参阅:
- 常量字段值
-
TYPE_BIGDECIMAL
public static final char TYPE_BIGDECIMAL
- 另请参阅:
- 常量字段值
-
TYPE_BIGINTEGER
public static final char TYPE_BIGINTEGER
- 另请参阅:
- 常量字段值
-
TYPE_BOOLEAN
public static final char TYPE_BOOLEAN
- 另请参阅:
- 常量字段值
-
TYPE_BYTE
public static final char TYPE_BYTE
- 另请参阅:
- 常量字段值
-
TYPE_BYTES
public static final char TYPE_BYTES
- 另请参阅:
- 常量字段值
-
TYPE_INT
public static final char TYPE_INT
- 另请参阅:
- 常量字段值
-
TYPE_DOUBLE
public static final char TYPE_DOUBLE
- 另请参阅:
- 常量字段值
-
TYPE_FLOAT
public static final char TYPE_FLOAT
- 另请参阅:
- 常量字段值
-
TYPE_CHAR
public static final char TYPE_CHAR
- 另请参阅:
- 常量字段值
-
TYPE_SHORT
public static final char TYPE_SHORT
- 另请参阅:
- 常量字段值
-
TYPE_OBJECT
public static final char TYPE_OBJECT
- 另请参阅:
- 常量字段值
-
TYPE_DATE
public static final char TYPE_DATE
- 另请参阅:
- 常量字段值
-
TYPE_LONG
public static final char TYPE_LONG
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
encode
public static void encode(Thing thing, PrintWriter out, Map<Thing,String> context) throws IOException
编码事物。- 参数:
thing-out-context-- 抛出:
IOException
-
encodeName
protected static void encodeName(PrintWriter out, String name, char type, String ident) throws IOException
- 抛出:
IOException
-
encodeString
protected static void encodeString(String name, String value, PrintWriter out, String ident) throws IOException
- 抛出:
IOException
-
decode
public static Thing decode(Thing thing, InputStream input, boolean full, long lastModified) throws IOException
解码。- 参数:
thing- 事物input- 输入流full- 是否全部导入lastModified- 最后修改日期- 返回:
- 事物
- 抛出:
IOException- 异常如果发生
-
-