Class H2Util

java.lang.Object
com.github.hypfvieh.db.H2Util

public class H2Util extends Object
Utility methods to work with H2 database files.
Since:
1.2.1 - 2024-03-21
Author:
hypfvieh
  • Constructor Details

    • H2Util

      public H2Util()
  • Method Details

    • findH2Version

      public static H2Util.H2VersionInfo findH2Version(InputStream _input) throws IOException
      Reads the given stream and tries to extract the version information.
      If version information cannot be determined, null is returned.

      Given stream will be closed after operation.

      Parameters:
      _input - input stream to H2 file
      Returns:
      version info or null if version cannot be found
      Throws:
      IOException - when read operation fails