Package land.oras
Class LocalPath
java.lang.Object
land.oras.LocalPath
Local path
-
Method Summary
Modifier and TypeMethodDescriptionGet the media type or default depending on directory or standard filegetPath()
Get the pathstatic LocalPath
New path with path:mediaType (for example /path/to/file.json:application/json)static LocalPath
New local path with no media typestatic LocalPath
New path with no media typetoString()
-
Method Details
-
of
New local path with no media type- Parameters:
path
- The path- Returns:
- The local path
-
of
New path with no media type- Parameters:
path
- The pathmediaType
- The media type- Returns:
- The local path
-
of
New path with path:mediaType (for example /path/to/file.json:application/json)- Parameters:
expression
- The expression- Returns:
- The local path
-
getMediaType
Get the media type or default depending on directory or standard file- Returns:
- The media type
-
getPath
Get the path- Returns:
- The path
-
toString
-