public class WrapInputStream extends InputStream
InputStream and envelopes the
bytes returned by the given input stream with a Dummy XML
element that contains declarations for all namespace prefixes inherited from
the given namespace context node as specified by the the W3C recommendation
XML Encryption
Syntax and Processing, section 4.3.4.| Constructor and Description |
|---|
WrapInputStream(InputStream in,
Node nsCtxNode)
Creates a new instance of this
WrapInputStream with the
specified input stream to be wrapped and the given node to get the
namespace context from. |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public WrapInputStream(InputStream in, Node nsCtxNode)
WrapInputStream with the
specified input stream to be wrapped and the given node to get the
namespace context from.in - the input stream to be wrappednsCtxNode - the node to get the namespace context frompublic int read()
throws IOException
read in class InputStreamIOExceptionInputStream.read()public int available()
throws IOException
available in class InputStreamIOExceptionInputStream.available()public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionInputStream.close()public void mark(int readlimit)
mark in class InputStreamInputStream.mark(int)public boolean markSupported()
markSupported in class InputStreamInputStream.markSupported()public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionInputStream.read(byte[], int, int)public int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionInputStream.read(byte[])public void reset()
throws IOException
reset in class InputStreamIOExceptionInputStream.reset()public long skip(long n)
throws IOException
skip in class InputStreamIOExceptionInputStream.skip(long)© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC