public class SimpleGetdataResponse extends java.lang.Object implements IGetDataResponse
IGetDataResponse implementation which contains an input stream, a
settable write protection flag and local code page.| Constructor and Description |
|---|
SimpleGetdataResponse(java.io.InputStream pIs,
boolean pWriteProtected)
Basic constructor.
|
SimpleGetdataResponse(java.io.InputStream pIs,
boolean pWriteProtected,
java.lang.String pLocalCP)
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream() |
java.lang.String |
getLocalCodePage() |
boolean |
isWriteProtected()
Returns whether the response restricts the re-upload of the contents.
|
public SimpleGetdataResponse(java.io.InputStream pIs,
boolean pWriteProtected)
pIs - the input streampWriteProtected - write protection flagpublic SimpleGetdataResponse(java.io.InputStream pIs,
boolean pWriteProtected,
java.lang.String pLocalCP)
pIs - the input streampWriteProtected - write protection flagpLocalCP - the local code page used to create the contents (Needed to set
the charset of workspace file in case of setting this contents
in a workspace file).public boolean isWriteProtected()
IGetDataResponseisWriteProtected in interface IGetDataResponsetrue if the received data is write protected and
false otherwise.public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface IGetDataResponsejava.io.IOException - if an error occurs during the creation of the input streampublic java.lang.String getLocalCodePage()
getLocalCodePage in interface IGetDataResponsenullCopyright © 2015 Micro Focus GmbH. All rights reserved.