20#ifndef INCLUDED_OOX_HELPER_TEXTINPUTSTREAM_HXX
21#define INCLUDED_OOX_HELPER_TEXTINPUTSTREAM_HXX
23#include <com/sun/star/uno/Reference.hxx>
24#include <rtl/textenc.h>
25#include <rtl/ustring.hxx>
29 namespace io {
class XInputStream; }
30 namespace io {
class XTextInputStream2; }
31 namespace uno {
class XComponentContext; }
36class BinaryInputStream;
43 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
44 const css::uno::Reference< css::io::XInputStream >& rxInStrm,
45 rtl_TextEncoding eTextEnc );
48 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
50 rtl_TextEncoding eTextEnc );
94 static css::uno::Reference< css::io::XTextInputStream2 >
96 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
97 const css::uno::Reference< css::io::XInputStream >& rxInStrm,
98 rtl_TextEncoding eTextEnc );
103 const css::uno::Reference< css::uno::XComponentContext >& rxContext,
104 const css::uno::Reference< css::io::XInputStream >& rxInStrm,
105 rtl_TextEncoding eTextEnc );
111 css::uno::Reference< css::io::XTextInputStream2 >
TextInputStream(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::io::XInputStream > &rxInStrm, rtl_TextEncoding eTextEnc)
sal_Unicode mcPendingChar
css::uno::Reference< css::io::XTextInputStream2 > mxTextStrm
OUString createFinalString(const OUString &rString)
Adds the pending character in front of the passed string, if existing.
bool isEof() const
Returns true, if no more text is available in the stream.
void init(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::io::XInputStream > &rxInStrm, rtl_TextEncoding eTextEnc)
OUString readLine()
Reads a text line from the stream.
static css::uno::Reference< css::io::XTextInputStream2 > createXTextInputStream(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::io::XInputStream > &rxInStrm, rtl_TextEncoding eTextEnc)
Creates a UNO text input stream object from the passed UNO input stream.
OUString readToChar(sal_Unicode cChar, bool bIncludeChar)
Reads a text portion from the stream until the specified character is found.
TextInputStream(const css::uno::Reference< css::uno::XComponentContext > &rxContext, BinaryInputStream &rInStrm, rtl_TextEncoding eTextEnc)