|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.stellent.ridc.model.serialize.HdaSerializerUtils
public abstract class HdaSerializerUtils
Utility methods used when serilazing binders in HDA protocol.
| Nested Class Summary | |
|---|---|
static class |
HdaSerializerUtils.FormatType
The format type of the stream |
| Field Summary | |
|---|---|
static java.lang.String |
BEGIN_HDA
|
static java.lang.String |
BEGIN_HDA_NO_HEADER
|
| Constructor Summary | |
|---|---|
HdaSerializerUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
decode(java.lang.String in)
Decodes a string with backslash escaped characters, "\\n" goes to "\n" |
static HdaSerializerUtils.FormatType |
determineFormat(java.io.InputStream inputStream,
java.lang.String encoding)
Determines the format by looking at the first bytes of the stream and checkin it against the BEGIN_HDA string for equality. |
static java.lang.String |
encode(java.lang.String in)
Encodes a string to have backslash escape characters, "\n" goes to "\\n" |
static int |
readIdcContentLength(java.io.InputStream inputStream)
Read the custom IDCFILE content length portion of the inputstream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BEGIN_HDA
public static final java.lang.String BEGIN_HDA_NO_HEADER
| Constructor Detail |
|---|
public HdaSerializerUtils()
| Method Detail |
|---|
public static java.lang.String decode(java.lang.String in)
in - the string to encode
public static java.lang.String encode(java.lang.String in)
in - the encoded string
public static HdaSerializerUtils.FormatType determineFormat(java.io.InputStream inputStream,
java.lang.String encoding)
throws java.io.IOException
BEGIN_HDA string for equality. Assumes all headers have been read
inputStream - the current input streamencoding - the stream encoding
HdaSerializerUtils.FormatType.HDA_TYPE or HdaSerializerUtils.FormatType.STREAM_TYPE
java.io.IOException
public static int readIdcContentLength(java.io.InputStream inputStream)
throws java.io.IOException
inputStream -
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||