public class FileAndFolderIterator extends MBScriptableObject
myLogger
Constructor and Description |
---|
FileAndFolderIterator() |
Modifier and Type | Method and Description |
---|---|
void |
jsConstructor()
Dummy constructor.
|
boolean |
jsFunction_hasNext()
Returns whether the iterator still has items left to go over.
|
org.mozilla.javascript.Scriptable |
jsFunction_next()
Gets the next object represents file instance to iterate over.
|
void |
jsFunction_setIndex(int theIndex)
set the current iterator Index
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public void jsConstructor()
public org.mozilla.javascript.Scriptable jsFunction_next() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- Thrown when no files or folder remain to be iterated.
Important note: it is possible for this exception to be thrown even if hasNext() return true. This will occur if while iterating the files and folders, another thread or process moves, renames or deletes one or many of the files or folders being iterated. This can be prevented by locking all the iterators' files and folders before retrieving the iterator (e.g. lock the parent folder before retrieving an iterator over the files and folders it contains)
ManagedFile, UnmanagedFile, ManagedFolder, UnmanagedFolder
public void jsFunction_setIndex(int theIndex)
theIndex
- the index to setjava.util.NoSuchElementException
public boolean jsFunction_hasNext()
Copyright © 2023 MediaBeacon, Inc. All Rights Reserved.