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: System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
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 boolean |
EndsInDirectorySeparator(java.lang.String path) |
static boolean |
Exists(java.lang.String path) |
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 java.lang.String |
GetFullPath(java.lang.String path,
java.lang.String basePath) |
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 |
GetRelativePath(java.lang.String relativeTo,
java.lang.String path) |
static java.lang.String |
GetTempFileName() |
static java.lang.String |
GetTempPath() |
static boolean |
HasExtension(java.lang.String path) |
static boolean |
IsPathFullyQualified(java.lang.String path) |
static boolean |
IsPathRooted(java.lang.String path) |
static java.lang.String |
Join(JCORefOut dupParam0) |
static java.lang.String |
Join(java.lang.String... paths) |
static java.lang.String |
Join(java.lang.String path1,
java.lang.String path2) |
static java.lang.String |
Join(java.lang.String path1,
java.lang.String path2,
java.lang.String path3) |
static java.lang.String |
Join(java.lang.String path1,
java.lang.String path2,
java.lang.String path3,
java.lang.String path4) |
void |
setJCOInstance(JCObject instance) |
static java.lang.String |
TrimEndingDirectorySeparator(java.lang.String path) |
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,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException
public static java.lang.String Combine(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
public static java.lang.String Combine(java.lang.String... paths)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException
public static java.lang.String Combine(java.lang.String path1,
java.lang.String path2)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException
public static java.lang.String Combine(java.lang.String path1,
java.lang.String path2,
java.lang.String path3)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException
public 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,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException
public static boolean EndsInDirectorySeparator(java.lang.String path)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionpublic static boolean Exists(java.lang.String path)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
OutOfMemoryException,
NullReferenceException,
ExternalException,
CultureNotFoundException,
MissingMethodException,
TargetInvocationException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionOutOfMemoryExceptionNullReferenceExceptionExternalExceptionCultureNotFoundExceptionMissingMethodExceptionTargetInvocationExceptionpublic static java.lang.String GetDirectoryName(java.lang.String path)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException,
FormatException
public static java.lang.String GetExtension(java.lang.String path)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException
public static java.lang.String GetFileName(java.lang.String path)
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionpublic static java.lang.String GetFileNameWithoutExtension(java.lang.String path)
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
NotSupportedException
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionNotSupportedExceptionpublic static java.lang.String GetFullPath(java.lang.String path)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
OutOfMemoryException,
CultureNotFoundException,
NullReferenceException,
ExternalException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionCultureNotFoundExceptionNullReferenceExceptionExternalExceptionpublic static java.lang.String GetFullPath(java.lang.String path,
java.lang.String basePath)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException,
OutOfMemoryException,
CultureNotFoundException,
NullReferenceException,
ExternalException,
FormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionCultureNotFoundExceptionNullReferenceExceptionExternalExceptionFormatExceptionpublic static char[] GetInvalidFileNameChars()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
public static char[] GetInvalidPathChars()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException
public 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,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException
public static java.lang.String GetRandomFileName()
throws java.lang.Throwable,
PlatformNotSupportedException,
OutOfMemoryException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
NotSupportedException
public static java.lang.String GetRelativePath(java.lang.String relativeTo,
java.lang.String path)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
CultureNotFoundException
public static java.lang.String GetTempFileName()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
OutOfMemoryException,
ExternalException,
SerializationException,
MissingMethodException,
TargetInvocationException,
IOException,
ApplicationException,
ThreadStateException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionExternalExceptionSerializationExceptionMissingMethodExceptionTargetInvocationExceptionIOExceptionApplicationExceptionThreadStateExceptionpublic static java.lang.String GetTempPath()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException,
FormatException,
OutOfMemoryException,
CultureNotFoundException,
ExternalException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionInvalidOperationExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFormatExceptionOutOfMemoryExceptionCultureNotFoundExceptionExternalExceptionpublic static boolean HasExtension(java.lang.String path)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionpublic static boolean IsPathFullyQualified(java.lang.String path)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException
public static boolean IsPathRooted(java.lang.String path)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionpublic static java.lang.String Join(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
public static java.lang.String Join(java.lang.String... paths)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
IndexOutOfRangeException
public static java.lang.String Join(java.lang.String path1,
java.lang.String path2)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionpublic static java.lang.String Join(java.lang.String path1,
java.lang.String path2,
java.lang.String path3)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionpublic static java.lang.String Join(java.lang.String path1,
java.lang.String path2,
java.lang.String path3,
java.lang.String path4)
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException
java.lang.ThrowableIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic static java.lang.String TrimEndingDirectorySeparator(java.lang.String path)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException