Package system.io
Class Path
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.io.Path
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Path extends NetObject
The base .NET class managing System.IO.Path, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.Path
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798estatic java.lang.String
assemblyShortName
Assembly name: System.Private.CoreLibstatic java.lang.String
className
Qualified class name: System.IO.Pathstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Path
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoPath
, 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(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
Combine(JCORefOut dupParam0)
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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic 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(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)
static java.lang.String
Join(JCORefOut dupParam0)
void
setJCOInstance(JCObject instance)
static java.lang.String
TrimEndingDirectorySeparator(java.lang.String path)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Private.CoreLib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IO.Path- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Path cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoPath
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Path
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
EndsInDirectorySeparator
public static boolean EndsInDirectorySeparator(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
-
Exists
public static boolean Exists(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, OutOfMemoryException, ExternalException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
OutOfMemoryException
ExternalException
CultureNotFoundException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
-
HasExtension
public static boolean HasExtension(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
-
IsPathFullyQualified
public static boolean IsPathFullyQualified(java.lang.String path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
-
IsPathRooted
public static boolean IsPathRooted(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
-
GetInvalidFileNameChars
public static char[] GetInvalidFileNameChars() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetInvalidPathChars
public static char[] GetInvalidPathChars() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ChangeExtension
public static java.lang.String ChangeExtension(java.lang.String path, java.lang.String extension) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
Combine
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
-
Combine
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
-
Combine
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
-
Combine
public static java.lang.String Combine(java.lang.String... paths) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
-
Combine
public static java.lang.String Combine(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
-
GetDirectoryName
public static java.lang.String GetDirectoryName(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, FormatException
-
GetExtension
public static java.lang.String GetExtension(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
-
GetFileName
public static java.lang.String GetFileName(java.lang.String path) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException
- Throws:
java.lang.Throwable
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentOutOfRangeException
InvalidOperationException
NotSupportedException
-
GetFileNameWithoutExtension
public static java.lang.String GetFileNameWithoutExtension(java.lang.String path) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, NotSupportedException
- Throws:
java.lang.Throwable
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentOutOfRangeException
InvalidOperationException
NotSupportedException
-
GetFullPath
public 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, ExternalException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
OutOfMemoryException
CultureNotFoundException
ExternalException
FormatException
-
GetFullPath
public 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, ExternalException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
OutOfMemoryException
CultureNotFoundException
ExternalException
-
GetPathRoot
public static java.lang.String GetPathRoot(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
-
GetRandomFileName
public static java.lang.String GetRandomFileName() throws java.lang.Throwable, PlatformNotSupportedException, OutOfMemoryException, InvalidOperationException, IndexOutOfRangeException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException
-
GetRelativePath
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
-
GetTempFileName
public static java.lang.String GetTempFileName() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException, FormatException, SerializationException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IOException, ApplicationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
OutOfMemoryException
ExternalException
CultureNotFoundException
FormatException
SerializationException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
IOException
ApplicationException
-
GetTempPath
public static java.lang.String GetTempPath() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException, FormatException, OutOfMemoryException, CultureNotFoundException, ExternalException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
IndexOutOfRangeException
FormatException
OutOfMemoryException
CultureNotFoundException
ExternalException
ArgumentNullException
-
Join
public 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, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException
-
Join
public 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, InvalidOperationException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
IndexOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
-
Join
public static java.lang.String Join(java.lang.String path1, java.lang.String path2) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
-
Join
public static java.lang.String Join(java.lang.String... paths) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
-
Join
public static java.lang.String Join(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
-
TrimEndingDirectorySeparator
public static java.lang.String TrimEndingDirectorySeparator(java.lang.String path) throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException
-
-