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 void
close()
void
flush()
int
getOverridePort()
java.net.InetAddress
getOverrideSendAddress()
void
setOverridePort(int overridePort)
void
setOverrideSendAddress(java.net.InetAddress overrideSendAddress)
void
write(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:
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
-
write
public void write(int b) throws java.io.IOException
- Specified by:
write
in 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)
-
-