Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


oracle.stellent.ridc.model.serialize
Class HdaSerializerUtils

java.lang.Object
  extended by oracle.stellent.ridc.model.serialize.HdaSerializerUtils


public abstract class HdaSerializerUtils
extends java.lang.Object

Utility methods used when serializing 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

BEGIN_HDA

public static final java.lang.String BEGIN_HDA
See Also:
Constant Field Values

BEGIN_HDA_NO_HEADER

public static final java.lang.String BEGIN_HDA_NO_HEADER
See Also:
Constant Field Values

Constructor Detail

HdaSerializerUtils

public HdaSerializerUtils()

Method Detail

decode

public static java.lang.String decode(java.lang.String in)
Decodes a string with backslash escaped characters, "\\n" goes to "\n"
Parameters:
in - the string to encode
Returns:
the encoded string

encode

public static java.lang.String encode(java.lang.String in)
Encodes a string to have backslash escape characters, "\n" goes to "\\n"
Parameters:
in - the encoded string
Returns:
the decoded string

determineFormat

public static HdaSerializerUtils.FormatType determineFormat(java.io.InputStream inputStream,
                                                            java.lang.String encoding)
                                                     throws java.io.IOException
Determines the format by looking at the first bytes of the stream and checkin it against the BEGIN_HDA string for equality. Assumes all headers have been read
Parameters:
inputStream - the current input stream
encoding - the stream encoding
Returns:
the format type, either HdaSerializerUtils.FormatType.HDA_TYPE or HdaSerializerUtils.FormatType.STREAM_TYPE
Throws:
java.io.IOException

readIdcContentLength

public static int readIdcContentLength(java.io.InputStream inputStream)
                                throws java.io.IOException
Read the custom IDCFILE content length portion of the inputstream
Parameters:
inputStream -
Returns:
Throws:
java.io.IOException

Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.