code: protected void closeInputs() throws IOException{
          while(true){
              if(in instanceof Transport)
                  return;
              in.close();
              in = in.detachInput();
          }
      }
docs: /*-------------------------------------------------[ closeOutputs ]---------------------------------------------------