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;
41 public InputStream getByteStream () {
46 public void setByteStream (InputStream byteStream) {
47 fByteStream = byteStream;
51 public Reader getCharacterStream () {
56 public void setCharacterStream (Reader characterStream) {
57 fCharStream = characterStream;
61 public String getStringData () {
66 public void setStringData (String stringData) {
71 public String getEncoding () {
76 public void setEncoding (String encoding) {
81 public String getPublicId () {
86 public void setPublicId (String publicId) {
91 public String getSystemId () {
96 public void setSystemId (String systemId) {
101 public String getBaseURI () {
102 return fBaseSystemId;
106 public void setBaseURI (String baseURI) {
107 fBaseSystemId = baseURI;
111 public boolean getCertifiedText () {
112 return fCertifiedText;
116 public void setCertifiedText (boolean certifiedText) {
117 fCertifiedText = certifiedText;