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 FileEntry
advance(boolean last)
void
close()
protected void
doClose()
protected abstract void
doCloseInternal()
protected abstract boolean
fetchMore()
SmbResource
getParent()
protected abstract FileEntry[]
getResults()
int
getSearchAttributes()
jcifs.smb.SmbTreeHandleImpl
getTreeHandle()
String
getWildcard()
boolean
hasNext()
protected abstract boolean
isDone()
FileEntry
next()
protected abstract FileEntry
open()
void
remove()
-
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:
hasNext
in interfaceIterator<FileEntry>
- See Also:
Iterator.hasNext()
-
next
public FileEntry next()
- Specified by:
next
in interfaceIterator<FileEntry>
- See Also:
Iterator.next()
-
close
public void close() throws CIFSException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseableIterator<FileEntry>
- Throws:
CIFSException
- See Also:
AutoCloseable.close()
-
-