@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value="SR_NOT_CHECKED",justification="skipping all, don't care what skip() returns") protected void purgeStream(@Nonnull java.io.InputStream serialStream) throws java.io.IOException {
  int count=serialStream.available();
  log.debug("input stream shows " + count + " bytes available");
  while (count > 0) {
    serialStream.skip(count);
    count=serialStream.available();
  }
}

@ edu . umd . cs . findbugs . annotations . SuppressFBWarnings ( value = "SR_NOT_CHECKED" , justification = "skipping all, don't care what skip() returns" ) protected void purgeStream ( @ Nonnull java . io . InputStream serialStream ) throws java . io . IOException { int count = serialStream . available ( ) ; log . debug ( "input stream shows " + count + " bytes available" ) ; while ( count > 0 ) { serialStream . skip ( count ) ; count = serialStream . available ( ) ; } }
service method to purge a stream of initial contents while opening the connection .
