Class InputStreamConnectionByteReceiverImpl

java.lang.Object
org.refcodes.component.AbstractConnectableAutomaton
org.refcodes.io.AbstractInputStreamByteReceiver
org.refcodes.io.InputStreamConnectionByteReceiverImpl
All Implemented Interfaces:
org.refcodes.component.Closable, org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.ClosedAccessor, org.refcodes.component.ConnectableComponent, org.refcodes.component.ConnectableComponent.ConnectableAutomaton, org.refcodes.component.ConnectionComponent<InputStream>, org.refcodes.component.ConnectionComponent.ConnectionAutomaton<InputStream>, org.refcodes.component.ConnectionOpenable<InputStream>, org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<InputStream>, org.refcodes.component.ConnectionStatusAccessor, org.refcodes.component.OpenedAccessor, Availability, ByteDestination, ByteReceiver, BytesDestination, BytesReceiver, ConnectionBytesReceiver<InputStream>, InputStreamConnectionByteReceiver, Receivable, Skippable, TimeoutInputStreamAccessor, org.refcodes.mixin.InputStreamAccessor

public class InputStreamConnectionByteReceiverImpl extends AbstractInputStreamByteReceiver implements InputStreamConnectionByteReceiver
Implementation of the InputStreamConnectionReceiver interface.
  • Constructor Details

    • InputStreamConnectionByteReceiverImpl

      public InputStreamConnectionByteReceiverImpl()
  • Method Details

    • open

      public void open(InputStream aInputStream) throws IOException
      Open, see ConnectionOpenable.open(Object).
      Specified by:
      open in interface org.refcodes.component.ConnectionOpenable<InputStream>
      Overrides:
      open in class AbstractInputStreamByteReceiver
      Parameters:
      aInputStream - the input stream
      Throws:
      IOException - the open exception
    • isOpenable

      public boolean isOpenable(InputStream aInputStream)
      Checks if is openable. See also ConnectionOpenable.ConnectionOpenAutomaton.isOpenable(Object).
      Specified by:
      isOpenable in interface org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<InputStream>
      Overrides:
      isOpenable in class AbstractInputStreamByteReceiver
      Parameters:
      aInputStream - the input stream
      Returns:
      true, if is openable