Package oracle.i18n.util
Class DualInputStreamBuilder
- java.lang.Object
-
- oracle.i18n.util.DualInputStreamBuilder
-
public class DualInputStreamBuilder extends Object
TheDualInputStreamBuilderclass generates twoInputStreamwrapper objects for oneInputStreamsource.Use this class when two independent stream operations are required for one
InputStreamsource. Usually one stream is for temporary use. For example, one stream detects the language and character set for the input stream and another stream is used for the real purpose.TIPS: Close either one of the
InputStreamobjects as soon as the operation is completed.
-
-
Constructor Summary
Constructors Constructor Description DualInputStreamBuilder(InputStream in)Constructs this object with the sourceInputStreamobject.DualInputStreamBuilder(InputStream in, int size)Constructs this object with the sourceInputStreamobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetFirstInputStream()Returns the firstInputStreamobject.InputStreamgetSecondInputStream()Returns the secondInputStreamobject.
-
-
-
Constructor Detail
-
DualInputStreamBuilder
public DualInputStreamBuilder(InputStream in, int size)
Constructs this object with the sourceInputStreamobject.- Parameters:
in-InputStreamobjectsize- the buffer size
-
DualInputStreamBuilder
public DualInputStreamBuilder(InputStream in)
Constructs this object with the sourceInputStreamobject.- Parameters:
in-InputStreamobject
-
-
Method Detail
-
getFirstInputStream
public InputStream getFirstInputStream()
Returns the firstInputStreamobject.- Returns:
- the first
InputStreamobject
-
getSecondInputStream
public InputStream getSecondInputStream()
Returns the secondInputStreamobject.- Returns:
- the second
InputStreamobject
-
-