Uploaded image for project: 'OpenFAST'
  1. OpenFAST
  2. FAST-26

MulticastInputStream doesnot override public int available() throws IOException from java.io.InputStream

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      ANY

      Description

      java.io.InputStream has a method implemented

      public int available() throws IOException

      { return 0; }

      and comments

      • <p> A subclass' implementation of this method may choose to throw an
      • {@link IOException}

        if this input stream has been closed by

      • invoking the {@link #close()}

        method.
        *

      • <p> The {@code available}

        method for class

        {@code InputStream}

        always

      • returns {@code 0}

        .
        *

      • <p> This method should be overridden by subclasses.

      but org.openfast.session.multicast.MulticastInputStream
      does not override this method.

      Suppose to add such code to org.openfast.session.multicast.MulticastInputStream

      @Override
      public int available() throws IOException

      { System.out.println("!2"+socket.isConnected()); return buffer.remaining(); }

        Attachments

          Activity

            People

            • Assignee:
              jacob_northey Jacob Northey
              Reporter:
              kullfar Stas Gromov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: