Class UnreliableOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class UnreliableOutputStream
    extends java.io.OutputStream
    • 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 interface java.io.Flushable
        Overrides:
        flush in class java.io.OutputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(int b)
                   throws java.io.IOException
        Specified by:
        write in class java.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)