org.jcp.xml.dsig.internal
Class SignerOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by org.jcp.xml.dsig.internal.SignerOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class SignerOutputStream
extends ByteArrayOutputStream

Disabled: no SafeJ information.

Derived from Apache sources and changed to use java.security.Signature objects as input instead of com.sun.org.apache.xml.internal.security.algorithms.SignatureAlgorithm objects.


Field Summary
 
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
 
Constructor Summary
SignerOutputStream(Signature sig)
           
 
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.
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, writeTo
 
Methods inherited from class java.io.OutputStream
flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SignerOutputStream

public SignerOutputStream(Signature sig)
Class is disabled.

Method Detail

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.