public Builder(final InputStream input_stream,TrafficDirection direction) throws IllegalArgumentException {
  if (input_stream == null) {
    throw new IllegalArgumentException("Null input stream.");
  }
  this.wrappedStream=input_stream;
  if (direction == null) {
    throw new IllegalArgumentException("Null traffic direction.");
  }
  this.direction=direction;
}

public Builder ( final InputStream input_stream , TrafficDirection direction ) throws IllegalArgumentException { if ( input_stream == null ) { throw new IllegalArgumentException ( "Null input stream." ) ; } this . wrappedStream = input_stream ; if ( direction == null ) { throw new IllegalArgumentException ( "Null traffic direction." ) ; } this . direction = direction ; }
build a regulatedinputstream builder .
