public class WindowsDirectory extends FSDirectory
Directory implementation for Microsoft Windows.
Steps:
c:\mingw\bin\g++ -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at -I"%JAVA_HOME%\include" -I"%JAVA_HOME%\include\win32" -static-libgcc -static-libstdc++ -shared WindowsDirectory.cpp -o WindowsDirectory.dllFor 64-bit JREs, use mingw64, with the -m64 option.
directoryisOpen, lockFactory| Constructor and Description |
|---|
WindowsDirectory(java.nio.file.Path path)
Create a new WindowsDirectory for the named location and
FSLockFactory.getDefault(). |
WindowsDirectory(java.nio.file.Path path,
LockFactory lockFactory)
Create a new WindowsDirectory for the named location.
|
| Modifier and Type | Method and Description |
|---|---|
IndexInput |
openInput(java.lang.String name,
IOContext context)
Returns a stream reading an existing file.
|
checkPendingDeletions, close, createOutput, createTempOutput, deleteFile, deletePendingFiles, ensureCanRead, fileLength, fsync, getDirectory, listAll, listAll, open, open, renameFile, sync, toStringensureOpen, obtainLockcopyFrom, openChecksumInputpublic WindowsDirectory(java.nio.file.Path path,
LockFactory lockFactory)
throws java.io.IOException
path - the path of the directorylockFactory - the lock factory to usejava.io.IOException - If there is a low-level I/O errorpublic WindowsDirectory(java.nio.file.Path path)
throws java.io.IOException
FSLockFactory.getDefault().path - the path of the directoryjava.io.IOException - If there is a low-level I/O errorpublic IndexInput openInput(java.lang.String name, IOContext context) throws java.io.IOException
DirectoryThrows FileNotFoundException or NoSuchFileException
if the file does not exist.
Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.