2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.so.apihandler.common;
24 import java.io.InputStream;
25 import java.io.Reader;
26 import org.w3c.dom.ls.LSInput;
28 public class LSInputImpl implements LSInput {
30 protected String fPublicId;
31 protected String fSystemId;
32 protected String fBaseSystemId;
33 protected InputStream fByteStream;
34 protected Reader fCharStream;
35 protected String fData;
36 protected String fEncoding;
37 protected boolean fCertifiedText;
40 public InputStream getByteStream() {
45 public void setByteStream(InputStream byteStream) {
46 fByteStream = byteStream;
50 public Reader getCharacterStream() {
55 public void setCharacterStream(Reader characterStream) {
56 fCharStream = characterStream;
60 public String getStringData() {
65 public void setStringData(String stringData) {
70 public String getEncoding() {
75 public void setEncoding(String encoding) {
80 public String getPublicId() {
85 public void setPublicId(String publicId) {
90 public String getSystemId() {
95 public void setSystemId(String systemId) {
100 public String getBaseURI() {
101 return fBaseSystemId;
105 public void setBaseURI(String baseURI) {
106 fBaseSystemId = baseURI;
110 public boolean getCertifiedText() {
111 return fCertifiedText;
115 public void setCertifiedText(boolean certifiedText) {
116 fCertifiedText = certifiedText;