blob: 1ec8cfc0be294a18dc1a8b132f0ecec38a252b9a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
//
// InputSource.cpp
//
// Library: XML
// Package: SAX
// Module: SAX
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/SAX/InputSource.h"
namespace Poco {
namespace XML {
InputSource::InputSource():
_bistr(0),
_cistr(0)
{
}
InputSource::InputSource(const XMLString& systemId):
_systemId(systemId),
_bistr(0),
_cistr(0)
{
}
InputSource::InputSource(XMLByteInputStream& bistr):
_bistr(&bistr),
_cistr(0)
{
}
InputSource::~InputSource()
{
}
void InputSource::setPublicId(const XMLString& publicId)
{
_publicId = publicId;
}
void InputSource::setSystemId(const XMLString& systemId)
{
_systemId = systemId;
}
void InputSource::setEncoding(const XMLString& encoding)
{
_encoding = encoding;
}
void InputSource::setByteStream(XMLByteInputStream& bistr)
{
_bistr = &bistr;
}
void InputSource::setCharacterStream(XMLCharInputStream& cistr)
{
_cistr = &cistr;
}
} } // namespace Poco::XML
|