程序包 org.xmeta.codes
类 TxtCoder
java.lang.Object
org.xmeta.codes.TxtCoder
public class TxtCoder extends Object
-
字段概要
字段 修饰符和类型 字段 说明 static String
STRING_ENCODING
static char
TYPE_BIGDECIMAL
static char
TYPE_BIGINTEGER
static char
TYPE_BOOLEAN
static char
TYPE_BYTE
static char
TYPE_BYTES
static char
TYPE_CHAR
static char
TYPE_DATE
static char
TYPE_DOUBLE
static char
TYPE_FLOAT
static char
TYPE_INT
static char
TYPE_LASTMODIFIED
static char
TYPE_LONG
static char
TYPE_NODE
static char
TYPE_OBJECT
static char
TYPE_SHORT
static char
TYPE_STRING
static char
TYPE_STRINGS
-
构造器概要
构造器 构造器 说明 TxtCoder()
-
方法概要
修饰符和类型 方法 说明 static Thing
decode(Thing thing, InputStream input, boolean full, long lastModified)
解码。static void
encode(Thing thing, PrintWriter out, Map<Thing,String> context)
编码模型。protected static void
encodeName(PrintWriter out, String name, char type, String ident)
protected static void
encodeString(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- 另请参阅:
- 常量字段值
-
STRING_ENCODING
- 另请参阅:
- 常量字段值
-
-
构造器详细资料
-
TxtCoder
public TxtCoder()
-
-
方法详细资料
-
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
- 异常如果发生
-