epublib | a java library for reading and writing epub files | Media library
kandi X-RAY | epublib Summary
kandi X-RAY | epublib Summary
Epublib is a java library for reading/writing/manipulating epub files. It consists of 2 parts: a core that reads/writes epub and a collection of tools. The tools contain an epub cleanup tool, a tool to create epubs from html files, a tool to create an epub from an uncompress html file. It also contains a swing-based epub viewer. The core runs both on android and a standard java environment. The tools run only on a standard java environment. This means that reading/writing epub files works on Android.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main method for reading book processor
- Finds resources
- Process a CHM object node
- Find the title of the book
- Creates the main window
- Creates the menu bar
- Fills the entries array from the zip file
- Writes the metadata of a book
- Create HTML cleaner
- Called when a navigation is pressed
- Handle a hyperlink event
- Skip n bytes from uncompressed data
- Skip n bytes
- Converts an HTML document to a byte array
- Gets an image from the book
- Returns a String representation of the BOM
- Add toolbar buttons
- Finishes writing the zip file
- Simple test
- Builds the table for the given lengths
- Serialize a tag
- Add the search buttons
- Processes a book
- Transforms the HTML into bytes
- Sets up the navigator to the navigator
- Creates the JEditorPane
epublib Key Features
epublib Examples and Code Snippets
Community Discussions
Trending Discussions on epublib
QUESTION
I'm developing a web service in App Engine standard environment with Java (servlets). The idea is that it get info. from Cloud SQL and generate a EPUB programmatically with Siegmann' epub library: http://www.siegmann.nl/epublib
But i'm not sure that how can add things like images or html files (i first will convert the info. from Cloud SQL to HTML), sicen the writer of epub needs a path to a files.
can i download first all resources that need in local directory of app engine and references them? Or what can i do?
Thank you in advance and sorry for my English.
...ANSWER
Answered 2020-Jul-13 at 14:45Option 1:
You can use the /tmp
directory of your App Engine instance to store temporary files. See this link.
Bear in mind that files stored in the /tmp
folder will only be accessible within the instance that wrote them.
Option 2:
After a quick look to Siegmann' epub library, I have seen that resources can be provided as Byte arrays and the writer fills an OutputStream.
With this in mind, you could use Cloud Storage and it's Java Client Library to download and store the files.
In this Java sample from the docs, you can see that an object is up laded without the need of it being stored in file-system, just passing it as Byte array.
And to download files from Cloud Storage into the memory of your App Engine App, you could use storage.get(BlobId.of(bucketName, objectName)).getContent()
to get the object's byte array
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install epublib
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page