summaryrefslogtreecommitdiff
path: root/platform/java
AgeCommit message (Collapse)Author
2016-09-08JNI: Handle exceptions from JVM properly.Sebastian Rasmussen
2016-09-08JNI: Cosmetic reordering of code.Sebastian Rasmussen
Including removal of unnecessary #ifdef.
2016-09-08JNI: Throw OutOfBoundsException for out of range values.Sebastian Rasmussen
2016-09-08JNI: Throw IOException when Buffer fails to read/write.Sebastian Rasmussen
2016-09-08JNI: Make exceptions unchecked.Sebastian Rasmussen
Previously all exceptions thrown by the library would be converted into checked exceptions, but there was no sensible response to expect from a client.
2016-09-08JNI: Check arguments and throw suitable exceptions.Sebastian Rasmussen
2016-09-01JNI: Support size() and push() for arrays.Sebastian Rasmussen
2016-09-01JNI: Keep arguments before giving them to constructor.Sebastian Rasmussen
The arguments will be freed by the finalizer of the object. The finalizer for an object is called even if the constructor throws an Exception or an OutOfMemoryError.
2016-09-01JNI: get_context() may throw error and should be handled separately.Sebastian Rasmussen
2016-09-01JNI: Do not check self pointer, it is always valid.Sebastian Rasmussen
If an object reference is NULL the JVM will signal NullPointerException before the JNI-code is executed.
2016-09-01JNI: Check for exceptions after calling method.Sebastian Rasmussen
The return value from CallObjectMethod() is not valid if an exception is thrown, so check for exceptions before looking at the return value. Mentioned at http://developer.android.com/training/articles/perf-jni.html
2016-09-01JNI: Use short form of NULL checks.Sebastian Rasmussen
2016-09-01JNI: Use jboolean/JNI_TRUE/JNI_FALSE everywhere.Sebastian Rasmussen
2016-09-01JNI: Whitespace/comment/error message cleanup.Sebastian Rasmussen
2016-09-01JNI: Remove unused nativeAnnots/-Links.Sebastian Rasmussen
2016-09-01JNI: Remove unused variables and cast byte array region.Sebastian Rasmussen
Fixes two compiler warnings.
2016-09-01JNI: Update to new pdf_load_stream interface.Sebastian Rasmussen
2016-08-23Java - correct the JNI signatures for bbox fields in StructuredText inner ↵Fred Ross-Perry
classes.
2016-08-19Java - change contains() in Rect and RectI to properly handle empty rects.Fred Ross-Perry
2016-08-16Java/JNI - add TextChar.isWhitespacefredross-perry
2016-08-16Android java - ad textAsHtml() to the Page class.fred ross-perry
The JNI implementation is taken from core.textAsHtml() in the old viewer.
2016-08-16Java/JNI - Add empty ctor and union method to Rect and RectI.fred ross-perry
2016-08-16JNI: Add finalizers for Shade and PDFGraftMap.Sebastian Rasmussen
2016-08-15JNI: BufferOutputStream should only be used for writing.Sebastian Rasmussen
2016-08-08Java/JNI: Added blocks/lines/spans/chars to StructuredText.fred ross-perry
added TextBlock, TextLine, TextSpan and TextChar inner classes to StructuredText. Calling StructuredText.getBlocks() returns an array of TextBlocks, which in turn contains an array of TextLines, etc.
2016-08-08android java - add "contains" function to Rect.fred ross-perry
2016-08-07JNI: Only store links/annotations if all are successfully handled.Sebastian Rasmussen
2016-08-02JNI: Add/change PDFDocument.save() related methods.Sebastian Rasmussen
Added methods: * PDFDocument.hasUnsavedChanges() * PDFDocument.canBeSavedIncrementally() The interface for PDFDocument.save() now returns the number of errors encountered while saving.
2016-08-02JNI: Delete forgotten global references to classes.Sebastian Rasmussen
2016-08-02JNI: Put all Pixmap.clear() in a single location.Sebastian Rasmussen
2016-07-20JNI: Add PDFDocument methods for grafting objects onto documents.Sebastian Rasmussen
2016-07-20JNI: Add DisplayList.toStructuredText().Sebastian Rasmussen
2016-07-20JNI: Implement PDFOBject.write*() methods.Sebastian Rasmussen
2016-07-20JNI: fz_var()/return to make behavior correct upon fz_throw().Sebastian Rasmussen
Previously in many instances the code was allowed to continue after running jni_rethrow() or jni_throw(). When doing so it used variables whose values may have changed inside fz_try(). Those variables must in that case be declared using fz_var(). Another way of avoiding this from happening (and thus having to use fz_var()) is to return from the function immediately after jni_rethrow()/jni_throw(). All remaining occurrances where this is not possible still needs fz_var(). The code is now changed so that it either uses fz_var() or returns early to avoid using variables that have not been declared using fz_var().
2016-07-20JNI: Check more JNI arguments for null.Sebastian Rasmussen
2016-07-20JNI: Declare methods for internal use private.Sebastian Rasmussen
2016-07-19JNI: Fix local ref leaks in methods using object arrays.Robin Watts
Would be fine were it not for the finite number of local refs we are allowed.
2016-07-19JNI: Fix bug in Document.loadOutline.Sebastian Rasmussen
Previously an exception was thrown for documents without an outline. Now document both with and without an outline are handled correctly.
2016-07-18JNI: Fix typo in Pixmap.getSample() interface.Sebastian Rasmussen
2016-07-17JNI: Implement document Outline.Sebastian Rasmussen
2016-07-17JNI: Implement Link for hyperlinks in document.Sebastian Rasmussen
2016-07-17JNI: When adding stream/page contents, accept String.Sebastian Rasmussen
This is for easy of use, in addition to accepting Buffer.
2016-07-17JNI: Validate that page indicies are always positive.Sebastian Rasmussen
2016-07-17JNI: Add BufferInputStream, BufferOutputStream.Sebastian Rasmussen
These are meant to make it easy to interact with mupdf's Buffer object in a normal Java fashion.
2016-07-17JNI: Extend Buffer interface, especially for reading.Sebastian Rasmussen
2016-07-17JNI: Cleanup of Annotation and PDFObject_toByteString.Sebastian Rasmussen
2016-07-15android desktop view - add a button to toggle annotations on/off.fred ross-perry
2016-07-15java - move fitz sources into a 'src' subfolder.fred ross-perry
2016-07-15Support changing reflowable font size in JNI sample viewer.Sebastian Rasmussen
Also fix bug in sample java viewer where zoom caused an Exception.
2016-07-15Adding missing JNI interfaces.Sebastian Rasmussen
Some objects get their interfaces expanded or the entire object is added both corresponding to what was already present in the mujs interface. Some interfaces, e.g. Buffer.writeLines() has been adapted to suit Java.