Package deltix.util.vsocket
Class VSocketOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- deltix.util.vsocket.VSocketOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class VSocketOutputStream extends java.io.OutputStream
-
-
Constructor Summary
Constructors Constructor Description VSocketOutputStream(java.io.OutputStream out, java.lang.String socketIdStr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
confirm(long size)
void
flush()
long
getBytesWritten()
boolean
isBroken()
java.lang.String
toString()
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
void
writeTo(VSocketOutputStream out)
void
writeTwoArrays(byte[] b1, int off1, int len1, byte[] b2, int off2, int len2)
Same as callingwrite(byte[], int, int)
two times but a little bit more effective.
-
-
-
Method Detail
-
write
public void write(byte[] b)
- Overrides:
write
in classjava.io.OutputStream
-
write
public void write(int b)
- Specified by:
write
in classjava.io.OutputStream
-
write
public void write(byte[] b, int off, int len)
- Overrides:
write
in classjava.io.OutputStream
-
writeTwoArrays
public void writeTwoArrays(byte[] b1, int off1, int len1, byte[] b2, int off2, int len2)
Same as callingwrite(byte[], int, int)
two times but a little bit more effective.
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
getBytesWritten
public long getBytesWritten()
-
confirm
public void confirm(long size)
-
writeTo
public void writeTo(VSocketOutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
isBroken
public boolean isBroken()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-