An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# quiver4j
:open_file_folder: A Java library for parsing [Quiver](http://happenapps.com/) libraries.

![](https://img.shields.io/maven-central/v/com.reyallan/quiver4j.svg)

## 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()));
}
}
}
}
}
```