Example usage for Java org.apache.lucene.util IOUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
String | UTF_8 UTF-8 charset string. |
void | close(Closeable... objects) Closes all given Closeables. |
void | close(Iterable extends Closeable> objects) Closes all given Closeables. |
void | closeWhileHandlingException(Closeable... objects) Closes all given Closeables, suppressing all thrown exceptions. |
void | closeWhileHandlingException(Iterable extends Closeable> objects) Closes all given Closeables, suppressing all thrown non VirtualMachineError exceptions. |
void | deleteFilesIgnoringExceptions(Path... files) Deletes all given files, suppressing all thrown IOExceptions. |
void | deleteFilesIgnoringExceptions(Collection extends Path> files) Deletes all given files, suppressing all thrown IOExceptions. |
void | deleteFilesIgnoringExceptions(Directory dir, Collection Deletes all given files, suppressing all thrown IOExceptions. |
void | deleteFilesIgnoringExceptions(Directory dir, String... files) |
void | fsync(Path fileToSync, boolean isDir) Ensure that any writes to the given file is written to the storage device that contains it. |
Reader | getDecodingReader(InputStream stream, Charset charSet) Wrapping the given InputStream in a reader using a CharsetDecoder . |
Reader | getDecodingReader(Class> clazz, String resource, Charset charSet) Opens a Reader for the given resource using a CharsetDecoder . |
void | reThrow(Throwable th) Rethrows the argument as IOException or RuntimeException if it's not null. |
void | reThrowUnchecked(Throwable th) |
void | rm(Path... locations) Deletes one or more files or directories (and everything underneath it). |
LinkedHashMap | rm(final LinkedHashMap |
boolean | spins(Directory dir) If the dir is an FSDirectory or wraps one via possibly nested FilterDirectory or FileSwitchDirectory , this returns #spins(Path) for the wrapped directory, else, true. |
boolean | spins(Path path) Rough Linux-only heuristics to determine whether the provided Path is backed by spinning storage. |