Java Code Examples for org.apache.tools.tar.TarEntry#isDirectory()
The following examples show how to use
org.apache.tools.tar.TarEntry#isDirectory() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TarFileTree.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private void visitImpl(FileVisitor visitor, InputStream inputStream) throws IOException { AtomicBoolean stopFlag = new AtomicBoolean(); NoCloseTarInputStream tar = new NoCloseTarInputStream(inputStream); TarEntry entry; while (!stopFlag.get() && (entry = tar.getNextEntry()) != null) { if (entry.isDirectory()) { visitor.visitDir(new DetailsImpl(entry, tar, stopFlag, chmod)); } else { visitor.visitFile(new DetailsImpl(entry, tar, stopFlag, chmod)); } } }
Example 2
Source File: TarFileTree.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private void visitImpl(FileVisitor visitor, InputStream inputStream) throws IOException { AtomicBoolean stopFlag = new AtomicBoolean(); NoCloseTarInputStream tar = new NoCloseTarInputStream(inputStream); TarEntry entry; while (!stopFlag.get() && (entry = tar.getNextEntry()) != null) { if (entry.isDirectory()) { visitor.visitDir(new DetailsImpl(entry, tar, stopFlag, chmod)); } else { visitor.visitFile(new DetailsImpl(entry, tar, stopFlag, chmod)); } } }
Example 3
Source File: TarFileTree.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private void visitImpl(FileVisitor visitor, InputStream inputStream) throws IOException { AtomicBoolean stopFlag = new AtomicBoolean(); NoCloseTarInputStream tar = new NoCloseTarInputStream(inputStream); TarEntry entry; while (!stopFlag.get() && (entry = tar.getNextEntry()) != null) { if (entry.isDirectory()) { visitor.visitDir(new DetailsImpl(entry, tar, stopFlag, chmod)); } else { visitor.visitFile(new DetailsImpl(entry, tar, stopFlag, chmod)); } } }
Example 4
Source File: TarFileTree.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private void visitImpl(FileVisitor visitor, InputStream inputStream) throws IOException { AtomicBoolean stopFlag = new AtomicBoolean(); NoCloseTarInputStream tar = new NoCloseTarInputStream(inputStream); TarEntry entry; while (!stopFlag.get() && (entry = tar.getNextEntry()) != null) { if (entry.isDirectory()) { visitor.visitDir(new DetailsImpl(entry, tar, stopFlag, chmod)); } else { visitor.visitFile(new DetailsImpl(entry, tar, stopFlag, chmod)); } } }
Example 5
Source File: TarArchiveLocation.java From pumpernickel with MIT License | 4 votes |
@Override public boolean isDirectory(TarEntry entry) { return entry.isDirectory(); }