com.croftsoft.core.io
Class StringCoder

java.lang.Object
  extended by com.croftsoft.core.io.StringCoder
All Implemented Interfaces:
Encoder, Parser

public final class StringCoder
extends Object
implements Encoder, Parser

A String Encoder and Parser.

Since:
2003-06-01
Version:
2003-06-02
Author:
David Wallace Croft

Field Summary
static String US_ASCII
           
static String UTF_8
           
 
Constructor Summary
StringCoder(String charSetName)
           
 
Method Summary
 byte[] encode(Object object)
           
 Object parse(InputStream inputStream, int contentLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

US_ASCII

public static final String US_ASCII
See Also:
Constant Field Values

UTF_8

public static final String UTF_8
See Also:
Constant Field Values
Constructor Detail

StringCoder

public StringCoder(String charSetName)
Method Detail

encode

public byte[] encode(Object object)
              throws IOException
Specified by:
encode in interface Encoder
Throws:
IOException

parse

public Object parse(InputStream inputStream,
                    int contentLength)
             throws IOException
Specified by:
parse in interface Parser
contentLength - -1 if unknown.
Throws:
IOException

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)