Code example for JarEntry

Methods: isDirectory

0
            this.file = file;
            this.name = name;
        } 
        /**创建{@link ScanEvent}*/ 
        ScanEvent(final String name, final JarEntry entry, final InputStream stream) {
            this.isRead = !entry.isDirectory();
            this.isWrite = false;
            this.stream = stream;
            this.name = name;
        } 
        //---------------------------------- 
        public String getName() {
            return this.name;
        } 
        public boolean isRead() { 
            return this.isRead;
        } 
        public boolean isWrite() { 
            return this.isWrite;
        }