Taro L. Saito
ae0a3e4d49
Add isValidCompressedBuffer for raw memory addresses
2013-08-13 17:02:16 +09:00
Taro L. Saito
dc20eaf222
Merge fixes for #27
2013-08-13 16:14:55 +09:00
Taro L. Saito
a48529731d
Add Snappy.cleanUp method for J2EE containers. #27
2013-08-13 16:07:46 +09:00
Taro L. Saito
2891c692c0
Removed SnappyNativeAPI, since native loader injection is no longer necessary
2013-08-13 15:55:58 +09:00
Taro L. Saito
88275fb846
commenting
2013-07-02 10:10:25 +09:00
Taro L. Saito
1f0d7bd6cd
#26 . Add throws IOException to compress methods
2013-03-28 13:02:27 +09:00
Taro L. Saito
64c35c7081
Fixes #26 . Add throws IOException to rawCompress
2013-03-28 12:53:23 +09:00
Taro L. Saito
f0e0e9727e
#25 Add raw compress methods that take memory addresses
2013-03-22 15:53:56 +09:00
Bradford Powell
c2260cf38d
Throw ExceptionInInitializerError rather than just printing stacktrace
...
to stderr if the native libraries cannot be loaded. Because Errors are
not checked exceptions, added to the javadoc to point out that static
initialization of Snappy can throw this Error.
2012-09-06 21:01:56 -05:00
Taro L. Saito
35f7e8edd6
Change the native library version retrieval method to look up
...
a resource file (VERSION) in org.xerial.snappy package.
Update issue 32
Status: Fixed
2011-09-26 23:14:27 +09:00
Taro L. Saito
ebf661dc74
Fix javadoc
2011-09-22 15:37:18 +09:00
Taro L. Saito
f2fe1d3d8b
Update issue 28
...
A workaround to postpone the initialization of SnappyNativeAPI.
2011-09-09 11:16:28 +09:00
Taro L. Saito
36f0208eb1
Fixes issue 22
...
Thanks for the report.
getUncompressedLength() was an experimental method, that tries to migrate C++ code of the Snappy into Java. I removed this method.
2011-07-02 14:01:49 +09:00
Taro L. Saito
c6e2aebe11
Build native libraries with arrayCopy method
2011-07-01 10:59:43 +09:00
Taro L. Saito
4281128209
Add rawWrite and rawRead API to the SnappyOutputStream and SnappyInputStream to support primitive array compression/decompression
2011-06-30 13:12:42 +09:00
Taro L. Saito
7134608206
Use SnappyNativeAPI as an interface to the native code
2011-06-27 10:29:58 +09:00
Taro L. Saito
dc0e8a3150
Add a trick to delegate native library loading to the parent class loader
2011-06-23 22:09:09 +09:00
Taro L. Saito
ba8a761010
Rename
2011-06-23 09:49:02 +09:00
Taro L. Saito
dd7c61a4f3
Fixes issue 18
2011-06-20 13:35:13 +09:00
Taro L. Saito
712c3f6c2b
Fix comments
2011-06-04 12:00:06 +09:00
Taro L. Saito
da9cf2d8c9
Add a pure-java code for GetUncompressedLength()
2011-06-04 11:36:52 +09:00
Taro L. Saito
bb83928f65
Fix comments
2011-04-26 09:16:16 +09:00
Taro L. Saito
bc8a059855
Fixes issue 10
2011-04-06 23:22:10 +09:00
Taro L. Saito
bfec17b345
sort the methods
2011-04-06 23:03:12 +09:00
Taro L. Saito
e3c232db7c
Removed invalid decompression error code
2011-04-06 22:27:42 +09:00
Taro L. Saito
fd5cec5441
add encode(String), uncompressString(byte[])
2011-04-06 22:15:44 +09:00
Taro L. Saito
508b24805a
Enforce use of byte arryas for output/input of rawComrpress/UnCompress methods
2011-04-06 21:59:06 +09:00
Taro L. Saito
0da6942aab
add rawCompress that accespts primitive type arrays casted into Object type
2011-04-06 17:57:09 +09:00
Taro L. Saito
119a119b30
add primitive array compressor/decompressor
2011-04-06 17:45:43 +09:00
Taro L. Saito
8a27c47e85
Update issue 10
...
add compress float[], double[], int[], char[], long[], short[]
2011-04-06 16:58:19 +09:00
Taro L. Saito
b82d1b9999
Update issue 10
...
compress(float[]) and uncompressFloat(byte[])
2011-04-06 16:27:30 +09:00
Taro L. Saito
a1f39c8b5a
Fall back to the previous loading strategy that simply use LoadSnappy.load()
2011-04-06 12:07:16 +09:00
Taro L. Saito
9f71f8eb1c
An attempt to use system class loader when loading dll
2011-04-06 12:05:55 +09:00
Taro L. Saito
93b956d4e8
add SnappyOutputStream prototype
2011-03-31 18:25:54 +09:00
Taro L. Saito
58eb961a93
add high-level API through byte[] for compression/decompression
2011-03-31 17:43:29 +09:00
Taro L. Saito
41debf9cb6
Fixes issue 4
2011-03-31 17:06:33 +09:00
Taro L. Saito
168d3f06e6
add isValidCompressedBuffer()
2011-03-30 22:54:21 +09:00
Taro L. Saito
af15244d83
Set the deploy location to pom.xml
2011-03-30 17:59:33 +09:00
Taro L. Saito
262222ea7e
use SnappyError for unchecked exception instead of IllegalArgumentException
2011-03-30 15:41:33 +09:00
Taro L. Saito
66e58cdf2b
apply Apache license to the souce code
2011-03-30 15:35:43 +09:00
Taro L. Saito
7a0663f528
edit API comments
2011-03-30 15:30:09 +09:00
Taro L. Saito
960481b965
add SnappyException/SnappyError
2011-03-30 15:26:53 +09:00
Taro L. Saito
07fe11c360
add Exception class
2011-03-30 15:00:49 +09:00
Taro L. Saito
2a57e2e52b
compress/decompress test
2011-03-30 13:58:27 +09:00
Taro L. Saito
23bc6f6438
Use ByteBuffer.allocateDirect(). If you use ByteBuffer.allocate() to create a byte buffer, JNI call GetDirectBufferAddress(jobject:ByteBuffer) returns NULL.
2011-03-30 13:44:21 +09:00
Taro L. Saito
158991f100
Move native API to SnappyNative.java
2011-03-30 13:08:36 +09:00
Taro L. Saito
7be32f4746
Fix JNI wrapper interfaces
2011-03-30 11:10:57 +09:00
Taro L. Saito
7b52820c44
Fix the dependency to JNI header
2011-03-29 23:45:04 +09:00
Taro L. Saito
b1e5ea1076
add JNI interface
2011-03-29 18:17:07 +09:00