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)
Opens a stream for reading an existing file.
|
close, createOutput, createTempOutput, deleteFile, deletePendingFiles, ensureCanRead, fileLength, fsync, getDirectory, getPendingDeletions, listAll, listAll, open, open, rename, sync, syncMetaData, 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
DirectoryNoSuchFileException or FileNotFoundException
if name points to a non-existing file.Copyright © 2000–2025 The Apache Software Foundation. All rights reserved.