|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.andynaz.irex.dr1000.scribble.ScribblesMgr
public class ScribblesMgr
Class to manage the scribbles. Let other classes access and read the scribbles in the file metadata.db.
Field Summary | |
---|---|
static String |
dbName
Name of the SQLite database file. |
Constructor Summary | |
---|---|
ScribblesMgr()
|
Method Summary | |
---|---|
static void |
format(String filePath)
Deprecated. only for debug purpuse; will be deleted in future release |
Map<Integer,List<Integer>> |
getIntMap(File filePath)
Return a map "page number → blob". |
private Connection |
getSQLiteConnection(File dirPath)
Return an open connection to the SQLite database with the strokes. |
private int |
getUnsignedInt(byte b)
Convert a byte in an unsigned int. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String dbName
Constructor Detail |
---|
public ScribblesMgr()
Method Detail |
---|
public Map<Integer,List<Integer>> getIntMap(File filePath) throws ClassNotFoundException, SQLException
filePath
- path to the PDF file
ClassNotFoundException
- if the class for the JDBC driver is not
found
SQLException
- if SQL errors occurprivate Connection getSQLiteConnection(File dirPath) throws ClassNotFoundException, SQLException
dirPath
- path of the folder which contains the PDF and the
metadata.db file
ClassNotFoundException
- if the class for the JDBC driver is not
found
SQLException
- if SQL errors occurprivate int getUnsignedInt(byte b)
b
- a byte
public static void format(String filePath) throws Exception
filePath
- path to the PDF file
Exception
- in caso of exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |