Package jcifs.smb
Class DirFileEntryEnumIteratorBase
- java.lang.Object
-
- jcifs.smb.DirFileEntryEnumIteratorBase
-
- All Implemented Interfaces:
AutoCloseable,Iterator<FileEntry>,CloseableIterator<FileEntry>
- Direct Known Subclasses:
DirFileEntryEnumIterator2
public abstract class DirFileEntryEnumIteratorBase extends Object implements CloseableIterator<FileEntry>
- Author:
- mbechler
-
-
Constructor Summary
Constructors Constructor Description DirFileEntryEnumIteratorBase(jcifs.smb.SmbTreeHandleImpl th, SmbResource parent, String wildcard, ResourceNameFilter filter, int searchAttributes)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected FileEntryadvance(boolean last)voidclose()protected voiddoClose()protected abstract voiddoCloseInternal()protected abstract booleanfetchMore()SmbResourcegetParent()protected abstract FileEntry[]getResults()intgetSearchAttributes()jcifs.smb.SmbTreeHandleImplgetTreeHandle()StringgetWildcard()booleanhasNext()protected abstract booleanisDone()FileEntrynext()protected abstract FileEntryopen()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
DirFileEntryEnumIteratorBase
public DirFileEntryEnumIteratorBase(jcifs.smb.SmbTreeHandleImpl th, SmbResource parent, String wildcard, ResourceNameFilter filter, int searchAttributes) throws CIFSException- Parameters:
th-parent-wildcard-filter-searchAttributes-- Throws:
CIFSException
-
-
Method Detail
-
getTreeHandle
public final jcifs.smb.SmbTreeHandleImpl getTreeHandle()
- Returns:
- the treeHandle
-
getSearchAttributes
public final int getSearchAttributes()
- Returns:
- the searchAttributes
-
getWildcard
public final String getWildcard()
- Returns:
- the wildcard
-
getParent
public final SmbResource getParent()
- Returns:
- the parent
-
advance
protected final FileEntry advance(boolean last) throws CIFSException
- Throws:
CIFSException
-
open
protected abstract FileEntry open() throws CIFSException
- Throws:
CIFSException
-
isDone
protected abstract boolean isDone()
-
fetchMore
protected abstract boolean fetchMore() throws CIFSException- Throws:
CIFSException
-
getResults
protected abstract FileEntry[] getResults()
-
doClose
protected void doClose() throws CIFSException- Throws:
CIFSException
-
doCloseInternal
protected abstract void doCloseInternal() throws CIFSException- Throws:
CIFSException
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<FileEntry>- See Also:
Iterator.hasNext()
-
next
public FileEntry next()
- Specified by:
nextin interfaceIterator<FileEntry>- See Also:
Iterator.next()
-
close
public void close() throws CIFSException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIterator<FileEntry>- Throws:
CIFSException- See Also:
AutoCloseable.close()
-
-