private boolean isContentTypeIn ( ZipInputStream stream ) throws IOException { boolean isContentType = false ; if ( this . innerFile != null ) { final String strInner = this . innerFile . toString ( ) ; InputStream dataStream = null ; ZipEntry zipEntry = stream . getNextEntry ( ) ; while ( zipEntry != null && dataStream == null ) { if ( strInner . equals ( zipEntry . getName ( ) ) ) { dataStream = stream ; } else { zipEntry = stream . getNextEntry ( ) ; } } if ( dataStream != null ) { isContentType = isContentType ( stream , zipEntry , dataStream ) ; } } else { isContentType = isContentType ( stream , null , null ) ; } return isContentType ; }
Replies if the given ZIP stream contains data of the expected type .