org.jcp.xml.dsig.internal
Class MacOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.jcp.xml.dsig.internal.MacOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class MacOutputStream
- extends ByteArrayOutputStream
Disabled: no SafeJ information.
Derived from Apache sources and changed to use Mac objects instead of
com.sun.org.apache.xml.internal.security.algorithms.SignatureAlgorithm objects.
Method Summary |
void |
write(byte[] arg0)
Writes b.length bytes from the specified byte array
to this output stream. |
void |
write(byte[] arg0,
int arg1,
int arg2)
Writes len bytes from the specified byte array
starting at offset off to this byte array output stream. |
void |
write(int arg0)
Writes the specified byte to this byte array output stream. |
MacOutputStream
public MacOutputStream(Mac mac)
- Class is disabled.
write
public void write(byte[] arg0)
- Description copied from class:
OutputStream
- Writes
b.length
bytes from the specified byte array
to this output stream. The general contract for write(b)
is that it should have exactly the same effect as the call
write(b, 0, b.length)
.
- Overrides:
write
in class OutputStream
- Parameters:
arg0
- the data.- See Also:
OutputStream.write(byte[], int, int)
write
public void write(int arg0)
- Description copied from class:
ByteArrayOutputStream
- Writes the specified byte to this byte array output stream.
- Overrides:
write
in class ByteArrayOutputStream
- Parameters:
arg0
- the byte to be written.
write
public void write(byte[] arg0,
int arg1,
int arg2)
- Description copied from class:
ByteArrayOutputStream
- Writes
len
bytes from the specified byte array
starting at offset off
to this byte array output stream.
- Overrides:
write
in class ByteArrayOutputStream
- Parameters:
arg0
- the data.arg1
- the start offset in the data.arg2
- the number of bytes to write.