gnu.gcj.io

Class SimpleSHSStream

Implemented Interfaces:
AutoCloseable, Closeable, DataOutput, Flushable

public class SimpleSHSStream
extends DataOutputStream

Field Summary

Fields inherited from class java.io.DataOutputStream

written

Fields inherited from class java.io.FilterOutputStream

out

Constructor Summary

SimpleSHSStream(OutputStream out)
This method initializes an instance of DataOutputStream to write its data to the specified underlying OutputStream

Method Summary

byte[]
digest()
void
write(byte[] b, int off, int len)
This method writes len bytes from the specified byte array buf starting at position offset into the buffer to the underlying output stream.
void
write(int b)
This method writes the specified byte (passed as an int) to the underlying output stream.

Methods inherited from class java.io.DataOutputStream

flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF

Methods inherited from class java.io.FilterOutputStream

close, flush, write, write, write

Methods inherited from class java.io.OutputStream

close, flush, write, write, write

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

SimpleSHSStream

public SimpleSHSStream(OutputStream out)
This method initializes an instance of DataOutputStream to write its data to the specified underlying OutputStream
Parameters:
out - The subordinate OutputStream to which this object will write

Method Details

digest

public byte[] digest()

write

public void write(byte[] b,
                  int off,
                  int len)
            throws IOException
This method writes len bytes from the specified byte array buf starting at position offset into the buffer to the underlying output stream.
Specified by:
write in interface DataOutput
Overrides:
write in interface DataOutputStream
Parameters:
len - The number of bytes to write.
Throws:
IOException - If an error occurs.

write

public void write(int b)
            throws IOException
This method writes the specified byte (passed as an int) to the underlying output stream.
Specified by:
write in interface DataOutput
Overrides:
write in interface DataOutputStream
Parameters:
Throws:
IOException - If an error occurs.

Copyright (C) 2000 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details.