public NetworkReceiver(String path){
  checkNotNull(path,"Path cannot be null");
  checkArgument(!path.isEmpty(),"Path cannot be an empty string");
  this.path=path;
}

public NetworkReceiver ( String path ) { checkNotNull ( path , "Path cannot be null" ) ; checkArgument ( ! path . isEmpty ( ) , "Path cannot be an empty string" ) ; this . path = path ; }
create a new networkreceiver with the specified path .
