adds skeleton of FST plugin
This commit is contained in:
1 parent
85d9c92f21
commit
bba4349e1e
31 files changed
+10960
-3
No files matched your search
+39
@@ -0,0 +1,39 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2015-2021 MINRES Technologies GmbH and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
* http://www.eclipse.org/legal/epl-v10.html
|
||||
*
|
||||
* Contributors:
|
||||
* MINRES Technologies GmbH - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package com.minres.scviewer.database.fst;
|
||||
|
||||
import java.io.*;
|
||||
import java.text.ParseException;
|
||||
import java.util.*;
|
||||
|
||||
import com.minres.scviewer.database.BitValue;
|
||||
import com.minres.scviewer.database.BitVector;
|
||||
import com.sun.jna.Pointer;
|
||||
|
||||
class FstFileParser {
|
||||
long currentTime;
|
||||
final File file;
|
||||
|
||||
public FstFileParser(File file) {
|
||||
this.file=file;
|
||||
}
|
||||
|
||||
public boolean load(IFstDatabaseBuilder builder) {
|
||||
Pointer ctx = FstLibrary.fstReaderOpen(file.getAbsolutePath());
|
||||
if(!ctx.equals(Pointer.NULL)) {
|
||||
String version = FstLibrary.fstReaderGetVersionString(ctx);
|
||||
System.out.println(version);
|
||||
FstLibrary.fstReaderClose(ctx);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user