|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.spot.suiteconverter.SigningOutputStream
public class SigningOutputStream
SigningOutputStream wraps a DataOutputStream with the ability to optionally append
signatures created using a SPOT SDK's private key. See flushAndAppendSignature()
and flushWithoutSignature()
Note that nothing is written to the underlying DataOutputStream
until one of those two methods is
called. In particular, flush()
does NOT flush the underlying DataOutputStream.
Field Summary | |
---|---|
static byte |
SIGNATURE_VERSION
|
Constructor Summary | |
---|---|
SigningOutputStream(DataOutputStream dos)
Create a SigningOutputStream |
Method Summary | |
---|---|
void |
close()
|
void |
flush()
|
void |
flushAndAppendSignature()
Append a signature created using the SPOT SDK's private key to the underlying DataOutputStream and flush the output. |
void |
flushWithoutSignature()
Flush the output through to the underlying DataOutputStream without
appending a signature. |
void |
write(byte[] arg0)
|
void |
write(byte[] arg0,
int arg1,
int arg2)
|
void |
write(int arg0)
|
void |
writeBoolean(boolean arg0)
|
void |
writeByte(int arg0)
|
void |
writeBytes(String arg0)
|
void |
writeChar(int arg0)
|
void |
writeChars(String arg0)
|
void |
writeDouble(double arg0)
|
void |
writeFloat(float arg0)
|
void |
writeInt(int arg0)
|
void |
writeLong(long arg0)
|
void |
writeShort(int arg0)
|
void |
writeUTF(String arg0)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte SIGNATURE_VERSION
Constructor Detail |
---|
public SigningOutputStream(DataOutputStream dos)
SigningOutputStream
dos
- the DataOutputStream
to wrapMethod Detail |
---|
public void flushAndAppendSignature() throws IOException
DataOutputStream
and flush the output.
IOException
public void flushWithoutSignature() throws IOException
DataOutputStream
without
appending a signature.
IOException
public void close() throws IOException
IOException
public void flush() throws IOException
IOException
public void write(byte[] arg0, int arg1, int arg2) throws IOException
write
in interface DataOutput
IOException
public void write(byte[] arg0) throws IOException
write
in interface DataOutput
IOException
public void write(int arg0) throws IOException
write
in interface DataOutput
IOException
public void writeBoolean(boolean arg0) throws IOException
writeBoolean
in interface DataOutput
IOException
public void writeByte(int arg0) throws IOException
writeByte
in interface DataOutput
IOException
public void writeBytes(String arg0) throws IOException
writeBytes
in interface DataOutput
IOException
public void writeChar(int arg0) throws IOException
writeChar
in interface DataOutput
IOException
public void writeChars(String arg0) throws IOException
writeChars
in interface DataOutput
IOException
public void writeDouble(double arg0) throws IOException
writeDouble
in interface DataOutput
IOException
public void writeFloat(float arg0) throws IOException
writeFloat
in interface DataOutput
IOException
public void writeInt(int arg0) throws IOException
writeInt
in interface DataOutput
IOException
public void writeLong(long arg0) throws IOException
writeLong
in interface DataOutput
IOException
public void writeShort(int arg0) throws IOException
writeShort
in interface DataOutput
IOException
public void writeUTF(String arg0) throws IOException
writeUTF
in interface DataOutput
IOException
|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |