public class Path extends NetObject
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.Path
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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.IO.Path
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Path() |
Path(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Path |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Path, a cast assert is made to check if types are compatible. |
static java.lang.String |
ChangeExtension(java.lang.String path,
java.lang.String extension) |
static java.lang.String |
Combine(JCORefOut dupParam0) |
static java.lang.String |
Combine(java.lang.String... paths) |
static java.lang.String |
Combine(java.lang.String path1,
java.lang.String path2) |
static java.lang.String |
Combine(java.lang.String path1,
java.lang.String path2,
java.lang.String path3) |
static java.lang.String |
Combine(java.lang.String path1,
java.lang.String path2,
java.lang.String path3,
java.lang.String path4) |
static java.lang.String |
GetDirectoryName(java.lang.String path) |
static java.lang.String |
GetExtension(java.lang.String path) |
static java.lang.String |
GetFileName(java.lang.String path) |
static java.lang.String |
GetFileNameWithoutExtension(java.lang.String path) |
static java.lang.String |
GetFullPath(java.lang.String path) |
static char[] |
GetInvalidFileNameChars() |
static char[] |
GetInvalidPathChars() |
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
|
static java.lang.String |
GetPathRoot(java.lang.String path) |
static java.lang.String |
GetRandomFileName() |
static java.lang.String |
GetTempFileName() |
static java.lang.String |
GetTempPath() |
static boolean |
HasExtension(java.lang.String path) |
static boolean |
IsPathRooted(java.lang.String path) |
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 Path()
throws java.lang.Throwable
java.lang.Throwablepublic Path(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static Path cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Path, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedPath instancejava.lang.Throwable - in case of error during cast operationpublic static java.lang.String ChangeExtension(java.lang.String path,
java.lang.String extension)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionpublic static java.lang.String Combine(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException
public static java.lang.String Combine(java.lang.String... paths)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
InvalidOperationException,
OutOfMemoryException,
IndexOutOfRangeException
public static java.lang.String Combine(java.lang.String path1,
java.lang.String path2)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionIndexOutOfRangeExceptionpublic static java.lang.String Combine(java.lang.String path1,
java.lang.String path2,
java.lang.String path3)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionIndexOutOfRangeExceptionpublic static java.lang.String Combine(java.lang.String path1,
java.lang.String path2,
java.lang.String path3,
java.lang.String path4)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionIndexOutOfRangeExceptionpublic static java.lang.String GetDirectoryName(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
PathTooLongException,
OutOfMemoryException,
CultureNotFoundException,
IndexOutOfRangeException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionPathTooLongExceptionOutOfMemoryExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic static java.lang.String GetExtension(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic static java.lang.String GetFileName(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic static java.lang.String GetFileNameWithoutExtension(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic static java.lang.String GetFullPath(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
OutOfMemoryException,
IndexOutOfRangeException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionNotSupportedExceptionpublic static char[] GetInvalidFileNameChars()
throws java.lang.Throwable
java.lang.Throwablepublic static char[] GetInvalidPathChars()
throws java.lang.Throwable
java.lang.Throwablepublic 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 static java.lang.String GetPathRoot(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PathTooLongException,
ArgumentOutOfRangeException,
OutOfMemoryException,
CultureNotFoundException,
IndexOutOfRangeException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
DriveNotFoundException,
OperationCanceledException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPathTooLongExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic static java.lang.String GetRandomFileName()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionpublic static java.lang.String GetTempFileName()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
FormatException,
ArgumentOutOfRangeException,
ObjectDisposedException,
CultureNotFoundException,
InvalidOperationException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException,
IndexOutOfRangeException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionFormatExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionCultureNotFoundExceptionInvalidOperationExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionIndexOutOfRangeExceptionpublic static java.lang.String GetTempPath()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
FormatException,
IndexOutOfRangeException,
NullReferenceException,
NotSupportedException,
ObjectDisposedException,
AbandonedMutexException,
CultureNotFoundException,
InvalidOperationException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionFormatExceptionIndexOutOfRangeExceptionNullReferenceExceptionNotSupportedExceptionObjectDisposedExceptionAbandonedMutexExceptionCultureNotFoundExceptionInvalidOperationExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionpublic static boolean HasExtension(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic static boolean IsPathRooted(java.lang.String path)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObject