Class H2Util
java.lang.Object
com.github.hypfvieh.db.H2Util
Utility methods to work with H2 database files.
- Since:
- 1.2.1 - 2024-03-21
- Author:
- hypfvieh
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classEncapsulates version information of H2 database file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic H2Util.H2VersionInfofindH2Version(InputStream _input) Reads the given stream and tries to extract the version information.
If version information cannot be determined,nullis returned.
-
Constructor Details
-
H2Util
public H2Util()
-
-
Method Details
-
findH2Version
Reads the given stream and tries to extract the version information.
If version information cannot be determined,nullis returned.Given stream will be closed after operation.
- Parameters:
_input- input stream to H2 file- Returns:
- version info or
nullif version cannot be found - Throws:
IOException- when read operation fails
-