Package io.cucumber.core.resource
Class JarUriFileSystemService
java.lang.Object
io.cucumber.core.resource.JarUriFileSystemService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidcloseFileSystem(URI jarUri) private static CloseablePathprivate static CloseablePathhandleJarUriScheme(URI uri) private static CloseablePathprivate static booleanprivate static booleanhasJarUriScheme(URI uri) private static booleanisSpringBoot31OrLower(URI uri) (package private) static CloseablePathprivate static CloseablePathopen(URI jarUri, Function<FileSystem, Path> pathProvider) private static FileSystemopenFileSystem(URI jarUri) (package private) static boolean
-
Field Details
-
FILE_URI_SCHEME
- See Also:
-
JAR_URI_SCHEME
- See Also:
-
JAR_URI_SCHEME_PREFIX
- See Also:
-
JAR_FILE_SUFFIX
- See Also:
-
JAR_URI_SEPARATOR
- See Also:
-
openFiles
-
referenceCounters
-
-
Constructor Details
-
JarUriFileSystemService
private JarUriFileSystemService()
-
-
Method Details
-
open
private static CloseablePath open(URI jarUri, Function<FileSystem, Path> pathProvider) throws IOException- Throws:
IOException
-
closeFileSystem
- Throws:
IOException
-
openFileSystem
- Throws:
IOException
-
supports
-
hasJarUriScheme
-
hasFileUriSchemeWithJarExtension
-
open
- Throws:
URISyntaxExceptionIOException
-
handleFileUriSchemeWithJarExtension
private static CloseablePath handleFileUriSchemeWithJarExtension(URI uri) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
handleJarUriScheme
- Throws:
IOExceptionURISyntaxException
-
isSpringBoot31OrLower
-
handleSpringBoot31JarUri
private static CloseablePath handleSpringBoot31JarUri(URI uri) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-