https://github.com/rey-allan/quiver4j
:open_file_folder: A Java library for parsing Quiver libraries.
https://github.com/rey-allan/quiver4j
java quiver
Last synced: about 2 months ago
JSON representation
:open_file_folder: A Java library for parsing Quiver libraries.
- Host: GitHub
- URL: https://github.com/rey-allan/quiver4j
- Owner: rey-allan
- License: mit
- Created: 2019-05-14T17:20:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-18T04:52:30.000Z (about 6 years ago)
- Last Synced: 2025-02-08T10:45:24.102Z (3 months ago)
- Topics: java, quiver
- Language: Java
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# quiver4j
:open_file_folder: A Java library for parsing [Quiver](http://happenapps.com/) libraries.
## Installation
### Maven
```xml
com.reyallan
quiver4j
1.0.0
pom```
### Gradle
```groovy
implementation 'com.reyallan:quiver4j:1.0.0'
```## Usage
```java
class QuiverParser {
public static void main(String[] args) {
QuiverLibrary library = new QuiverLibrary(Paths.get("/home/$USER/Quiver.qvlibrary"));
for (QuiverNotebook notebook : library.getNotebooks()) {
System.out.println(String.format("Notebook '%s' has %d notes", notebook.getName(), notebook.getNumberOfNotes()));
for (QuiverNote note : notebook.getNotes()) {
List content = note.getContent();
System.out.println(String.format("Note '%s' has %d cells", note.getTitle(), content.size()));
for (QuiverCell cell : content) {
System.out.println(String.format("Cell of type '%s' with data: %s", cell.getType(), cell.getData()));
}
}
}
}
}
```