Package jcifs.smb
Class NetServerEnumIterator
- java.lang.Object
-
- jcifs.smb.NetServerEnumIterator
-
- All Implemented Interfaces:
AutoCloseable
,Iterator<FileEntry>
,CloseableIterator<FileEntry>
public class NetServerEnumIterator extends Object implements CloseableIterator<FileEntry>
-
-
Constructor Summary
Constructors Constructor Description NetServerEnumIterator(SmbFile parent, jcifs.smb.SmbTreeHandleImpl th, String wildcard, int searchAttributes, ResourceNameFilter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
FileEntry
next()
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
-
NetServerEnumIterator
public NetServerEnumIterator(SmbFile parent, jcifs.smb.SmbTreeHandleImpl th, String wildcard, int searchAttributes, ResourceNameFilter filter) throws CIFSException
- Parameters:
parent
-th
-wildcard
-searchAttributes
-filter
-- Throws:
CIFSException
-
-
Method Detail
-
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:
CloseableIterator.close()
-
-