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) |
public static final char TYPE_LASTMODIFIED
public static final char TYPE_NODE
public static final char TYPE_STRING
public static final char TYPE_STRINGS
public static final char TYPE_BIGDECIMAL
public static final char TYPE_BIGINTEGER
public static final char TYPE_BOOLEAN
public static final char TYPE_BYTE
public static final char TYPE_BYTES
public static final char TYPE_INT
public static final char TYPE_DOUBLE
public static final char TYPE_FLOAT
public static final char TYPE_CHAR
public static final char TYPE_SHORT
public static final char TYPE_OBJECT
public static final char TYPE_DATE
public static final char TYPE_LONG
public static void encode(Thing thing, PrintWriter out, Map<Thing,String> context) throws IOException
thing - out - context - IOExceptionprotected static void encodeName(PrintWriter out, String name, char type, String ident) throws IOException
IOExceptionprotected static void encodeString(String name, String value, PrintWriter out, String ident) throws IOException
IOExceptionpublic static Thing decode(Thing thing, InputStream input, boolean full, long lastModified) throws IOException
thing - 事物input - 输入流full - 是否全部导入lastModified - 最后修改日期IOException - 异常如果发生Copyright © 2022 xworker.org. All rights reserved.