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, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: mscorlibstatic 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 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 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
GetTempFileName()
static java.lang.String
GetTempPath()
static boolean
HasExtension(java.lang.String path)
static boolean
IsPathRooted(java.lang.String path)
void
setJCOInstance(JCObject instance)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- 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
-
HasExtension
public static boolean HasExtension(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
-
IsPathRooted
public static boolean IsPathRooted(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
-
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, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
-
Combine
public static java.lang.String Combine(java.lang.String path1, java.lang.String path2) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
IndexOutOfRangeException
-
Combine
public static java.lang.String Combine(java.lang.String path1, java.lang.String path2, java.lang.String path3) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
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, ArgumentNullException, ArgumentException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
IndexOutOfRangeException
-
Combine
public static java.lang.String Combine(java.lang.String... paths) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException
-
Combine
public static java.lang.String Combine(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException
-
GetDirectoryName
public 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
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
PathTooLongException
OutOfMemoryException
CultureNotFoundException
IndexOutOfRangeException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
-
GetExtension
public static java.lang.String GetExtension(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
-
GetFileName
public static java.lang.String GetFileName(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
-
GetFileNameWithoutExtension
public static java.lang.String GetFileNameWithoutExtension(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
-
GetFullPath
public 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
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PathTooLongException
ArgumentOutOfRangeException
OutOfMemoryException
IndexOutOfRangeException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
-
GetPathRoot
public 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
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PathTooLongException
ArgumentOutOfRangeException
OutOfMemoryException
CultureNotFoundException
IndexOutOfRangeException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
-
GetRandomFileName
public static java.lang.String GetRandomFileName() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
OutOfMemoryException
-
GetTempFileName
public 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
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
FormatException
ArgumentOutOfRangeException
ObjectDisposedException
CultureNotFoundException
InvalidOperationException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
IndexOutOfRangeException
-
GetTempPath
public 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
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
FormatException
IndexOutOfRangeException
NullReferenceException
NotSupportedException
ObjectDisposedException
AbandonedMutexException
CultureNotFoundException
InvalidOperationException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
-
-