public class OutputStreamConnectionByteSenderImpl extends AbstractByteSender implements OutputStreamConnectionByteSender
OutputStreamConnectionSender
interface.org.refcodes.component.ConnectableComponent.ConnectableAutomaton
org.refcodes.component.OpenedAccessor.OpenedMutator, org.refcodes.component.OpenedAccessor.OpenedProperty
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
org.refcodes.component.ClosedAccessor.ClosedMutator, org.refcodes.component.ClosedAccessor.ClosedProperty
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
org.refcodes.component.Flushable.FlushBuilder<B extends org.refcodes.component.Flushable.FlushBuilder<B>>
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
Constructor and Description |
---|
OutputStreamConnectionByteSenderImpl() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush()
Flush.
|
boolean |
isOpenable(OutputStream aOutputStream) |
void |
open(OutputStream aOutputStream) |
void |
writeDatagram(byte aDatagram)
Write datagram.
|
writeDatagrams
getConnectionStatus, isClosable, isClosed, isOpenable, isOpened, open, setConnectionStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeDatagrams
writeDatagrams
public OutputStreamConnectionByteSenderImpl()
public void open(OutputStream aOutputStream) throws org.refcodes.component.OpenException
open
in interface org.refcodes.component.ConnectionOpenable<OutputStream>
org.refcodes.component.OpenException
public boolean isOpenable(OutputStream aOutputStream)
isOpenable
in interface org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<OutputStream>
public void flush() throws org.refcodes.component.OpenException
ByteSender
flush
in interface Flushable
flush
in interface ByteSender
org.refcodes.component.OpenException
- the open exceptionpublic void close() throws org.refcodes.component.CloseException
close
in interface org.refcodes.component.Closable
close
in class org.refcodes.component.impls.AbstractConnectableAutomaton
org.refcodes.component.CloseException
public void writeDatagram(byte aDatagram) throws org.refcodes.component.OpenException
ByteConsumer
writeDatagram
in interface ByteConsumer
writeDatagram
in interface ByteDatagramConsumer
aDatagram
- the a datagramorg.refcodes.component.OpenException
- the open exceptionCopyright © 2017. All rights reserved.