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.openecomp.mso.apihandler.common;
24 import java.io.InputStream;
25 import java.io.Reader;
27 import org.w3c.dom.ls.LSInput;
29 public class LSInputImpl implements LSInput {
31 protected String fPublicId;
32 protected String fSystemId;
33 protected String fBaseSystemId;
34 protected InputStream fByteStream;
35 protected Reader fCharStream;
36 protected String fData;
37 protected String fEncoding;
38 protected boolean fCertifiedText;
40 public LSInputImpl () {
44 public InputStream getByteStream () {
49 public void setByteStream (InputStream byteStream) {
50 fByteStream = byteStream;
54 public Reader getCharacterStream () {
59 public void setCharacterStream (Reader characterStream) {
60 fCharStream = characterStream;
64 public String getStringData () {
69 public void setStringData (String stringData) {
74 public String getEncoding () {
79 public void setEncoding (String encoding) {
84 public String getPublicId () {
89 public void setPublicId (String publicId) {
94 public String getSystemId () {
99 public void setSystemId (String systemId) {
100 fSystemId = systemId;
104 public String getBaseURI () {
105 return fBaseSystemId;
109 public void setBaseURI (String baseURI) {
110 fBaseSystemId = baseURI;
114 public boolean getCertifiedText () {
115 return fCertifiedText;
119 public void setCertifiedText (boolean certifiedText) {
120 fCertifiedText = certifiedText;