public class MemoryMappedFile extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.MemoryMappedFiles.MemoryMappedFile
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.IO.MemoryMappedFiles, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.IO.MemoryMappedFiles
|
static java.lang.String |
className
Qualified class name: System.IO.MemoryMappedFiles.MemoryMappedFile
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
MemoryMappedFile() |
MemoryMappedFile(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static MemoryMappedFile |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into MemoryMappedFile, a cast assert is made to check if types are compatible. |
void |
close() |
static MemoryMappedFile |
CreateFromFile(FileStream fileStream,
java.lang.String mapName,
long capacity,
MemoryMappedFileAccess access,
HandleInheritability inheritability,
boolean leaveOpen) |
static MemoryMappedFile |
CreateFromFile(SafeFileHandle fileHandle,
java.lang.String mapName,
long capacity,
MemoryMappedFileAccess access,
HandleInheritability inheritability,
boolean leaveOpen) |
static MemoryMappedFile |
CreateFromFile(java.lang.String path) |
static MemoryMappedFile |
CreateFromFile(java.lang.String path,
FileMode mode) |
static MemoryMappedFile |
CreateFromFile(java.lang.String path,
FileMode mode,
java.lang.String mapName) |
static MemoryMappedFile |
CreateFromFile(java.lang.String path,
FileMode mode,
java.lang.String mapName,
long capacity) |
static MemoryMappedFile |
CreateFromFile(java.lang.String path,
FileMode mode,
java.lang.String mapName,
long capacity,
MemoryMappedFileAccess access) |
static MemoryMappedFile |
CreateNew(java.lang.String mapName,
long capacity) |
static MemoryMappedFile |
CreateNew(java.lang.String mapName,
long capacity,
MemoryMappedFileAccess access) |
static MemoryMappedFile |
CreateNew(java.lang.String mapName,
long capacity,
MemoryMappedFileAccess access,
MemoryMappedFileOptions options,
HandleInheritability inheritability) |
static MemoryMappedFile |
CreateOrOpen(java.lang.String mapName,
long capacity) |
static MemoryMappedFile |
CreateOrOpen(java.lang.String mapName,
long capacity,
MemoryMappedFileAccess access) |
static MemoryMappedFile |
CreateOrOpen(java.lang.String mapName,
long capacity,
MemoryMappedFileAccess access,
MemoryMappedFileOptions options,
HandleInheritability inheritability) |
MemoryMappedViewAccessor |
CreateViewAccessor() |
MemoryMappedViewAccessor |
CreateViewAccessor(long offset,
long size) |
MemoryMappedViewAccessor |
CreateViewAccessor(long offset,
long size,
MemoryMappedFileAccess access) |
MemoryMappedViewStream |
CreateViewStream() |
MemoryMappedViewStream |
CreateViewStream(long offset,
long size) |
MemoryMappedViewStream |
CreateViewStream(long offset,
long size,
MemoryMappedFileAccess access) |
void |
Dispose() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
SafeMemoryMappedFileHandle |
getSafeMemoryMappedFileHandle() |
static MemoryMappedFile |
OpenExisting(java.lang.String mapName) |
static MemoryMappedFile |
OpenExisting(java.lang.String mapName,
MemoryMappedFileRights desiredAccessRights) |
static MemoryMappedFile |
OpenExisting(java.lang.String mapName,
MemoryMappedFileRights desiredAccessRights,
HandleInheritability inheritability) |
void |
setJCOInstance(JCObject instance) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public MemoryMappedFile()
throws java.lang.Throwable
java.lang.Throwablepublic MemoryMappedFile(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static MemoryMappedFile cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into MemoryMappedFile, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedMemoryMappedFile instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic static MemoryMappedFile CreateFromFile(FileStream fileStream, java.lang.String mapName, long capacity, MemoryMappedFileAccess access, HandleInheritability inheritability, boolean leaveOpen) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MissingMethodException, TargetInvocationException, IndexOutOfRangeException, FormatException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionMissingMethodExceptionTargetInvocationExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionpublic static MemoryMappedFile CreateFromFile(SafeFileHandle fileHandle, java.lang.String mapName, long capacity, MemoryMappedFileAccess access, HandleInheritability inheritability, boolean leaveOpen) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, MissingMethodException, TargetInvocationException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionpublic static MemoryMappedFile CreateFromFile(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, MissingMethodException, TargetInvocationException, SerializationException, ObjectDisposedException, IOException, ThreadStateException, FormatException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionSerializationExceptionObjectDisposedExceptionIOExceptionThreadStateExceptionFormatExceptionpublic static MemoryMappedFile CreateFromFile(java.lang.String path, FileMode mode) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, MissingMethodException, TargetInvocationException, SerializationException, ObjectDisposedException, IOException, ThreadStateException, FormatException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionSerializationExceptionObjectDisposedExceptionIOExceptionThreadStateExceptionFormatExceptionpublic static MemoryMappedFile CreateFromFile(java.lang.String path, FileMode mode, java.lang.String mapName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, MissingMethodException, TargetInvocationException, SerializationException, ObjectDisposedException, IOException, ThreadStateException, FormatException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionSerializationExceptionObjectDisposedExceptionIOExceptionThreadStateExceptionFormatExceptionpublic static MemoryMappedFile CreateFromFile(java.lang.String path, FileMode mode, java.lang.String mapName, long capacity) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, MissingMethodException, TargetInvocationException, SerializationException, ObjectDisposedException, IOException, ThreadStateException, FormatException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionSerializationExceptionObjectDisposedExceptionIOExceptionThreadStateExceptionFormatExceptionpublic static MemoryMappedFile CreateFromFile(java.lang.String path, FileMode mode, java.lang.String mapName, long capacity, MemoryMappedFileAccess access) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CultureNotFoundException, MissingMethodException, TargetInvocationException, FormatException, SerializationException, IOException, ApplicationException, ThreadStateException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionSerializationExceptionIOExceptionApplicationExceptionThreadStateExceptionpublic static MemoryMappedFile CreateNew(java.lang.String mapName, long capacity) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, MissingMethodException, TargetInvocationException, OutOfMemoryException
public static MemoryMappedFile CreateNew(java.lang.String mapName, long capacity, MemoryMappedFileAccess access) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, MissingMethodException, TargetInvocationException, OutOfMemoryException
public static MemoryMappedFile CreateNew(java.lang.String mapName, long capacity, MemoryMappedFileAccess access, MemoryMappedFileOptions options, HandleInheritability inheritability) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, MissingMethodException, TargetInvocationException, IndexOutOfRangeException, FormatException, OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionpublic static MemoryMappedFile CreateOrOpen(java.lang.String mapName, long capacity) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, FormatException, CultureNotFoundException, MissingMethodException, TargetInvocationException, OutOfMemoryException
public static MemoryMappedFile CreateOrOpen(java.lang.String mapName, long capacity, MemoryMappedFileAccess access) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, FormatException, CultureNotFoundException, MissingMethodException, TargetInvocationException, OutOfMemoryException
public static MemoryMappedFile CreateOrOpen(java.lang.String mapName, long capacity, MemoryMappedFileAccess access, MemoryMappedFileOptions options, HandleInheritability inheritability) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, InvalidOperationException, OutOfMemoryException
public MemoryMappedViewAccessor CreateViewAccessor() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, IOException, MissingMethodException, TargetInvocationException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionIOExceptionMissingMethodExceptionTargetInvocationExceptionOutOfMemoryExceptionpublic MemoryMappedViewAccessor CreateViewAccessor(long offset, long size) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, IOException, MissingMethodException, TargetInvocationException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionIOExceptionMissingMethodExceptionTargetInvocationExceptionOutOfMemoryExceptionpublic MemoryMappedViewAccessor CreateViewAccessor(long offset, long size, MemoryMappedFileAccess access) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, IOException, MissingMethodException, TargetInvocationException, FormatException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionIOExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionOutOfMemoryExceptionpublic MemoryMappedViewStream CreateViewStream() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, IOException, MissingMethodException, TargetInvocationException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionIOExceptionMissingMethodExceptionTargetInvocationExceptionOutOfMemoryExceptionpublic MemoryMappedViewStream CreateViewStream(long offset, long size) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, IOException, MissingMethodException, TargetInvocationException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionFormatExceptionIOExceptionMissingMethodExceptionTargetInvocationExceptionOutOfMemoryExceptionpublic MemoryMappedViewStream CreateViewStream(long offset, long size, MemoryMappedFileAccess access) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, IOException, MissingMethodException, TargetInvocationException, FormatException, OutOfMemoryException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionIOExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionOutOfMemoryExceptionpublic void Dispose()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic SafeMemoryMappedFileHandle getSafeMemoryMappedFileHandle() throws java.lang.Throwable
java.lang.Throwablepublic static MemoryMappedFile OpenExisting(java.lang.String mapName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, OutOfMemoryException
public static MemoryMappedFile OpenExisting(java.lang.String mapName, MemoryMappedFileRights desiredAccessRights) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, OutOfMemoryException
public static MemoryMappedFile OpenExisting(java.lang.String mapName, MemoryMappedFileRights desiredAccessRights, HandleInheritability inheritability) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, InvalidOperationException, OutOfMemoryException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObject