Skip navigation links

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

E17274-04


oracle.stellent.ridc.model.serialize
Class HdaSerializerUtils

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


public abstract class HdaSerializerUtils
extends 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 String BEGIN_HDA
           
static String BEGIN_HDA_NO_HEADER
           

 

Constructor Summary
HdaSerializerUtils()
           

 

Method Summary
static String decode(String in)
          Decodes a string with backslash escaped characters, "\\n" goes to "\n"
static HdaSerializerUtils.FormatType determineFormat(InputStream inputStream, 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 String encode(String in)
          Encodes a string to have backslash escape characters, "\n" goes to "\\n"
static long readIdcContentLength(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 String BEGIN_HDA
See Also:
Constant Field Values

BEGIN_HDA_NO_HEADER

public static final String BEGIN_HDA_NO_HEADER
See Also:
Constant Field Values

Constructor Detail

HdaSerializerUtils

public HdaSerializerUtils()

Method Detail

decode

public static String decode(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 String encode(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(InputStream inputStream,
                                                            String encoding)
                                                     throws 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:
IOException

readIdcContentLength

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

Skip navigation links

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

E17274-04


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