public class TextSerializer extends Object
| Constructor and Description |
|---|
TextSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static String |
readTextAsString(DataInput in)
Deserialize a Hadoop Text object into a String
|
static void |
writeStringAsText(DataOutput stream,
String str)
Serialize a String using the same logic as a Hadoop Text object
|
public static void writeStringAsText(DataOutput stream, String str) throws IOException
IOExceptionpublic static String readTextAsString(DataInput in) throws IOException
IOException