public boolean isLoadable ( ) { if ( getPayload ( ) instanceof NullPayload ) { return false ; } try { InputStream is = getInputStream ( ) ; try { is . read ( ) ; return true ; } finally { is . close ( ) ; } } catch ( IOException ex ) { return false ; } }
Tests whether the Cargo s payload is loadable .