Package oracle.i18n.util
Class DualInputStreamBuilder
- java.lang.Object
-
- oracle.i18n.util.DualInputStreamBuilder
-
public class DualInputStreamBuilder extends Object
TheDualInputStreamBuilder
class generates twoInputStream
wrapper objects for oneInputStream
source.Use this class when two independent stream operations are required for one
InputStream
source. 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
InputStream
objects as soon as the operation is completed.
-
-
Constructor Summary
Constructors Constructor Description DualInputStreamBuilder(InputStream in)
Constructs this object with the sourceInputStream
object.DualInputStreamBuilder(InputStream in, int size)
Constructs this object with the sourceInputStream
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getFirstInputStream()
Returns the firstInputStream
object.InputStream
getSecondInputStream()
Returns the secondInputStream
object.
-
-
-
Constructor Detail
-
DualInputStreamBuilder
public DualInputStreamBuilder(InputStream in, int size)
Constructs this object with the sourceInputStream
object.- Parameters:
in
-InputStream
objectsize
- the buffer size
-
DualInputStreamBuilder
public DualInputStreamBuilder(InputStream in)
Constructs this object with the sourceInputStream
object.- Parameters:
in
-InputStream
object
-
-
Method Detail
-
getFirstInputStream
public InputStream getFirstInputStream()
Returns the firstInputStream
object.- Returns:
- the first
InputStream
object
-
getSecondInputStream
public InputStream getSecondInputStream()
Returns the secondInputStream
object.- Returns:
- the second
InputStream
object
-
-