public final class NFileStream extends NStream
NObject.FromHandle, NObject.NObjectCallback, NObject.NObjectPropertyChangedCallbackchangedCallback, changingCallback, FLAG_REF_RET, propertyChangedCallback, stateChangedCallback| Constructor and Description |
|---|
NFileStream(com.sun.jna.Pointer handle,
boolean ownsHandle,
NFileAccess access)
Initializes a new instance of NFileStream class.
|
NFileStream(com.sun.jna.Pointer handle,
boolean ownsHandle,
NFileAccess access,
int bufferSize)
Initializes a new instance of NFileStream class.
|
NFileStream(com.sun.jna.Pointer handle,
NFileAccess access)
Initializes a new instance of NFileStream class.
|
NFileStream(com.sun.jna.Pointer handle,
NFileAccess access,
int bufferSize)
Initializes a new instance of NFileStream class.
|
NFileStream(String path,
NFileMode mode)
Initializes a new instance of NFileStream class.
|
NFileStream(String path,
NFileMode mode,
NFileAccess access)
Initializes a new instance of NFileStream class.
|
NFileStream(String path,
NFileMode mode,
NFileAccess access,
NFileShare share)
Initializes a new instance of NFileStream class.
|
NFileStream(String path,
NFileMode mode,
NFileAccess access,
NFileShare share,
int bufferSize)
Initializes a new instance of NFileStream class.
|
| Modifier and Type | Method and Description |
|---|---|
static NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
com.sun.jna.Pointer |
osHandle()
Gets an OS handle to the current file stream.
|
asInputStream, asOutputStream, canRead, canSeek, canWrite, checkCanRead, checkCanReadUnchecked, checkCanWrite, checkCanWriteUnchecked, checkIsOpen, close, copyFrom, copyTo, force, fromChannel, fromChannel, fromChannel, fromChannel, fromChannel, fromInputStream, fromInputStream, fromOutputStream, fromOutputStream, fromRandomAccessFile, fromRandomAccessFile, getNull, getSynchronized, isOpen, position, position, read, read, size, truncate, write, writeaddListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getOwner, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementscheck, dispose, finalizepublic NFileStream(String path, NFileMode mode) throws IOException
path - The path for the file that the current NFileStream will encapsulatemode - File mode determining how to open or create the file.IOExceptionpublic NFileStream(String path, NFileMode mode, NFileAccess access) throws IOException
path - The path for the file that the current NFileStream will encapsulatemode - File mode determining how to open or create the file.access - File access value determining how the file can be accessed by the NFileStream.IOExceptionpublic NFileStream(String path, NFileMode mode, NFileAccess access, NFileShare share) throws IOException
path - The path for the file that the current NFileStream will encapsulatemode - File mode determining how to open or create the file.access - File access value determining how the file can be accessed by the NFileStream.share - Value determining how the file will be shared by processes.IOExceptionpublic NFileStream(String path, NFileMode mode, NFileAccess access, NFileShare share, int bufferSize) throws IOException
path - The path for the file that the current NFileStream will encapsulatemode - File mode determining how to open or create the file.access - File access value determining how the file can be accessed by the NFileStream.share - Value determining how the file will be shared by processes.bufferSize - A positive NInt32 value greater than 0 indicating the buffer size.IOExceptionpublic NFileStream(com.sun.jna.Pointer handle,
NFileAccess access)
throws IOException
handle - A file handle for the file that the current NFileStream will encapsulate.access - File access value determining how the file can be accessed by the NFileStream.IOExceptionpublic NFileStream(com.sun.jna.Pointer handle,
NFileAccess access,
int bufferSize)
throws IOException
handle - A file handle for the file that the current NFileStream will encapsulate.access - File access value determining how the file can be accessed by the NFileStream.bufferSize - A positive NInt32 value greater than 0 indicating the buffer size.IOExceptionpublic NFileStream(com.sun.jna.Pointer handle,
boolean ownsHandle,
NFileAccess access)
throws IOException
handle - A file handle for the file that the current NFileStream will encapsulate.ownsHandle - true if the file handle will be owned by this NFileStream; otherwise, false.access - File access value determining how the file can be accessed by the NFileStream.IOExceptionpublic NFileStream(com.sun.jna.Pointer handle,
boolean ownsHandle,
NFileAccess access,
int bufferSize)
throws IOException
handle - A file handle for the file that the current NFileStream will encapsulate.ownsHandle - true if the file handle will be owned by this NFileStream; otherwise, false.access - File access value determining how the file can be accessed by the NFileStream.bufferSize - A positive NInt32 value greater than 0 indicating the buffer size.IOExceptionpublic static NType nativeTypeOf()
public com.sun.jna.Pointer osHandle()
Copyright © 2016 Neurotechnology. All rights reserved.