Package com.germancoding.packetapi.udp
Class UnreliableOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.germancoding.packetapi.udp.UnreliableOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class UnreliableOutputStream extends java.io.OutputStream
-
-
Constructor Summary
Constructors Constructor Description UnreliableOutputStream(UnreliableSocket uSocket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()intgetOverridePort()java.net.InetAddressgetOverrideSendAddress()voidsetOverridePort(int overridePort)voidsetOverrideSendAddress(java.net.InetAddress overrideSendAddress)voidwrite(int b)
-
-
-
Constructor Detail
-
UnreliableOutputStream
public UnreliableOutputStream(UnreliableSocket uSocket) throws java.net.SocketException
- Throws:
java.net.SocketException
-
-
Method Detail
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
getOverrideSendAddress
public java.net.InetAddress getOverrideSendAddress()
-
setOverrideSendAddress
public void setOverrideSendAddress(java.net.InetAddress overrideSendAddress)
-
getOverridePort
public int getOverridePort()
-
setOverridePort
public void setOverridePort(int overridePort)
-
-