Package org.apache.commons.io.monitor
Class FileAlterationObserver.Builder
java.lang.Object
org.apache.commons.io.build.AbstractSupplier<FileAlterationObserver,FileAlterationObserver.Builder>
 
org.apache.commons.io.build.AbstractOriginSupplier<FileAlterationObserver,FileAlterationObserver.Builder>
 
org.apache.commons.io.monitor.FileAlterationObserver.Builder
- All Implemented Interfaces:
- IOSupplier<FileAlterationObserver>
- Enclosing class:
- FileAlterationObserver
public static final class FileAlterationObserver.Builder
extends AbstractOriginSupplier<FileAlterationObserver,FileAlterationObserver.Builder> 
Builds instances of 
FileAlterationObserver.- Since:
- 2.18.0
- 
Method SummaryModifier and TypeMethodDescriptionget()Gets a newFileAlterationObserverinstance.setFileFilter(FileFilter fileFilter) Sets the file filter or null if none.Sets what case sensitivity to use comparing file names, null means system sensitive.setRootEntry(FileEntry rootEntry) Sets the root directory to observe.Methods inherited from class org.apache.commons.io.build.AbstractOriginSuppliercheckOrigin, getOrigin, hasOrigin, newByteArrayOrigin, newCharSequenceOrigin, newFileOrigin, newFileOrigin, newInputStreamOrigin, newOutputStreamOrigin, newPathOrigin, newPathOrigin, newRandomAccessFileOrigin, newRandomAccessFileOrigin, newReaderOrigin, newURIOrigin, newWriterOrigin, setByteArray, setCharSequence, setFile, setFile, setInputStream, setOrigin, setOutputStream, setPath, setPath, setRandomAccessFile, setRandomAccessFile, setReader, setURI, setWriterMethods inherited from class org.apache.commons.io.build.AbstractSupplierasThisMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.io.function.IOSupplierasSupplier, getUnchecked
- 
Method Details- 
getGets a newFileAlterationObserverinstance.- Returns:
- a result.
- Throws:
- IOException- if an I/O error occurs converting to an- Fileusing- AbstractOrigin.getFile().
- See Also:
 
- 
setFileFilterSets the file filter or null if none.- Parameters:
- fileFilter- file filter or null if none.
- Returns:
- This instance.
 
- 
setIOCaseSets what case sensitivity to use comparing file names, null means system sensitive.- Parameters:
- ioCase- what case sensitivity to use comparing file names, null means system sensitive.
- Returns:
- This instance.
 
- 
setRootEntrySets the root directory to observe.- Parameters:
- rootEntry- the root directory to observe.
- Returns:
- This instance.
 
 
-