Commit Graph

436 Commits

Author SHA1 Message Date
Taro L. Saito 2906673651 Fix javadoc comments 2011-08-23 18:13:19 +09:00
Taro L. Saito 29753d90fd Update issue 26
Applied the patch from tucu; load org-xerial-snappy.properties file when it can be found from the context class loader.
2011-08-23 11:01:34 +09:00
Taro L. Saito 57190cd4ab Fixes comments 2011-08-23 10:42:12 +09:00
Taro L. Saito 435fa89fe4 Add script for generating tar.gz of the project
Update issue 25
2011-08-18 15:27:04 +09:00
Taro L. Saito fe85390989 Fix commend on loading libsnappyjava 2011-08-16 13:14:48 +09:00
Taro L. Saito 3710c4e7dc Updates issue 20. Add org.xerial.snappy.use.systemlib property to lookup snappyjava dll under java.library.path 2011-08-16 13:04:57 +09:00
Taro L. Saito 1354d90401 merged 2011-08-16 11:16:44 +09:00
Taro L. Saito 6540318a12 Fixes issue 20
org.xerial.snappy.enable.bundled.libs is used with the default value = true.
2011-08-16 11:16:21 +09:00
Taro L. Saito 0d9356eac1 Add comments. Reset the java code target to 1.5 2011-08-03 20:54:01 +09:00
Taro L. Saito c73d2e104b Fixes issue 24 2011-08-02 17:07:24 +09:00
Taro L. Saito 93f66fc2e5 comment 2011-08-02 15:31:57 +09:00
Taro L. Saito de803e67a4 Rebuild win32 library. Add comments to INSTALL/README 2011-08-02 15:27:43 +09:00
Taro L. Saito e01077db8a Add comment 2011-08-02 15:15:15 +09:00
Taro L. Saito aa04d562f8 Discard the local JNI code loader and the org.xerial.snappy.disable.inject option 2011-08-02 15:07:59 +09:00
Taro L. Saito f0ef649651 trace from context class loader 2011-08-02 14:27:52 +09:00
Taro L. Saito 1aba243237 removed overlapped part. Use ProtectionDomain when injecting classes 2011-08-02 14:01:57 +09:00
Taro L. Saito 075b94af00 Removed debug message 2011-08-02 13:18:29 +09:00
Taro L. Saito 2f6dc58ba8 add debug message 2011-08-02 11:46:08 +09:00
Taro L. Saito fd1fa411d9 temporary disable native code injection 2011-08-01 18:37:04 +09:00
Taro L. Saito 9469afbe38 catch UnsatisfiedLinkError 2011-08-01 18:35:30 +09:00
Taro L. Saito 9e95185692 Set java target to 1.6 2011-08-01 18:26:07 +09:00
Taro L. Saito 8d49dddbba use static call instead of call by reflection 2011-08-01 18:22:48 +09:00
Taro L. Saito 94b879fe12 fix 2011-08-01 17:16:23 +09:00
Taro L. Saito 331e7ef10b remove unnecessary flag 2011-08-01 17:10:39 +09:00
Taro L. Saito 3e533b4e7d use context class loader 2011-08-01 17:03:55 +09:00
Taro L. Saito 9c86835cc3 initialize local snappy loader 2011-08-01 16:56:40 +09:00
Taro L. Saito 94d5356ba9 use local static variable to hold loaded states 2011-08-01 16:53:00 +09:00
Taro L. Saito 875235229c Split the loader code 2011-08-01 16:43:25 +09:00
Taro L. Saito f7a0619f64 Add local native lib loader 2011-08-01 16:33:18 +09:00
Taro L. Saito f40a9b96cb Add org.xerial.snappy.disable.inject 2011-08-01 16:09:06 +09:00
Taro L. Saito 387ffa34f0 use parent 2011-08-01 15:53:08 +09:00
Taro L. Saito ecd8aaa3e9 Add comments 2011-08-01 15:47:02 +09:00
Taro L. Saito 199b12e61c Add comment on SnappyLoader.load 2011-08-01 15:19:28 +09:00
Taro L. Saito 7931742179 Avoid to load native library twice even if SnappyNativeLoader injected to an ancestor class loader is discared 2011-08-01 14:17:22 +09:00
Taro L. Saito 0f75526c85 print stack trace 2011-08-01 14:03:15 +09:00
Taro L. Saito 75e34c8717 Wrap native code loading part with synchornized block 2011-08-01 13:57:47 +09:00
Taro L. Saito c4870fb505 Report exception message correctly 2011-08-01 13:43:12 +09:00
Taro L. Saito 30b3d247bd merged 2011-07-06 10:47:23 +09:00
Taro L. Saito 1c46977e67 Add a target for generationg SnappyNativeLoader bytecode 2011-07-06 10:46:47 +09:00
Taro L. Saito 50a142ae43 Build Mac i386 library 2011-07-04 16:04:23 +09:00
Taro L. Saito c675bf4280 Fixes issue 23 2011-07-04 09:26:30 +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 da64065e18 Add close method to clean up work space 2011-06-30 14:10:32 +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 536f130595 Fixes issue 21 2011-06-27 12:15:50 +09:00
Taro L. Saito 3fd156410c Add test for loading snappy-java using different class loaders in the same JVM 2011-06-27 11:40:59 +09:00
Taro L. Saito 2e7d3e907d Linux binary 2011-06-27 10:40:03 +09:00
Taro L. Saito b1d7fa9b0c Mac x86_64 lib 2011-06-27 10:36:44 +09:00
Taro L. Saito 5adc92c6f6 Add i386 lib 2011-06-27 10:35:16 +09:00
Taro L. Saito e1a14f9b72 Stop using JDK6 IOException constructor 2011-06-27 10:33:33 +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 06ba339352 Temporary use current class loader 2011-06-24 14:24:28 +09:00
Taro L. Saito 4a7694e295 Traverse ancestor class loader 2011-06-24 14:23:01 +09:00
Taro L. Saito b531cb36dc Add bytecode generator 2011-06-24 13:42:14 +09:00
Taro L. Saito d19a00ddb6 Revert to xerial-core-1.0.21 for compiling with JDK5 2011-06-24 13:26:21 +09:00
Taro L. Saito 2097c32314 Remove @Override annotation for Java5 compatibility 2011-06-24 13:07:25 +09:00
Taro L. Saito c884620c8f Add code to load snappyjava library in java.library.path 2011-06-24 13:03:39 +09:00
Taro L. Saito 244e2183b6 Edit documentation 2011-06-24 09:06:20 +09:00
Taro L. Saito 073ac31424 Remove 2011-06-23 22:37:17 +09:00
Taro L. Saito 8504a9384d Move pregenerated bytecode to resource folder 2011-06-23 22:36:55 +09:00
Taro L. Saito 4ee2936297 Removed garbage code 2011-06-23 22:26:01 +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 4301cfd9bd Mac i386 native library with -fvisibility=hidden option 2011-06-23 13:45:15 +09:00
Taro L. Saito e0454d121b Use xerial-core-2.0.2 for testing (remove dependencies to third-party libraries) 2011-06-23 13:44:01 +09:00
Taro L. Saito 5c54b5f18e Use -fvisibility=hidden option for Mac 2011-06-23 13:41:46 +09:00
Taro L. Saito 8fde323477 build win binaries 2011-06-23 12:52:09 +09:00
Taro L. Saito 1607113e36 Fixes issue 20
Applied a patch from tucu to disable the default behaviour with a JVM option org.xerial.snappy.disable.bundled.libs.
2011-06-23 10:07:58 +09:00
Taro L. Saito ba8a761010 Rename 2011-06-23 09:49:02 +09:00
Taro L. Saito c28787890f Add OSGi bundle activator 2011-06-22 10:36:17 +09:00
Taro L. Saito e2fffaddb9 Fixes issue 19 2011-06-21 10:34:22 +09:00
Taro L. Saito 68ff06883b Fixes issue 19 2011-06-21 10:30:41 +09:00
Taro L. Saito cd6c0615f8 Mac i386 library 2011-06-20 18:17:47 +09:00
Taro L. Saito 5c5203f7d2 Add windows and mac binary 2011-06-20 13:48:41 +09:00
Taro L. Saito a82f54340c Add linux binaries 2011-06-20 13:48:14 +09:00
Taro L. Saito dd7c61a4f3 Fixes issue 18 2011-06-20 13:35:13 +09:00
Taro L. Saito f027c52899 Applied a patch from Alec Wysocker to postpone the buffer allocation in SnappyInputStream 2011-06-20 09:42:46 +09:00
Taro L. Saito ae6a126d1c Add test for isValidCompressedBuffer. Add a comment on the usage of SnappyOutputStream 2011-06-20 09:32:11 +09:00
Taro L. Saito 7795673e0c Use 32kb block size according to suggestion by Alec Wysoker 2011-06-10 10:18:57 +09:00
Taro L. Saito e321bee6c1 Changed the default block size of SnappyOutputStream to 8kb from 4MB 2011-06-10 09:52:51 +09:00
Taro L. Saito 578883f1a8 Fixes issue 17. Applied 0xFF mask when returning int representation of byte data. 2011-06-07 08:43:29 +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 26774e3ca7 Resolve native lib version collectly by referring VERSION file 2011-06-04 10:35:19 +09:00
Taro L. Saito acfe991b2b Use -fvisiblity=hidden option to hide snappy API that is statically linked to snappy-java 2011-06-04 09:56:47 +09:00
Taro L. Saito 6233a826b2 Add native libraries for snappy-1.0.3 2011-06-03 17:35:15 +09:00
Taro L. Saito 9dda5e296f upgrade to snappy 1.0.3 2011-06-03 17:22:41 +09:00
Taro L. Saito ff92621e98 fix lib name 2011-06-03 12:05:28 +09:00
Taro L. Saito 317ca2dace issue an error when failed to load any library 2011-06-03 12:04:35 +09:00
Taro L. Saito 98566c5ad1 Rename native library names from libsnappy to libsnappyjava 2011-06-02 11:43:19 +09:00
Taro L. Saito a8f6917370 Rename native lib from snappy to snappyjava 2011-06-02 11:13:47 +09:00
Taro L. Saito a7d36f5cae Add native libraries for Linux 2011-05-27 17:18:59 +09:00
Taro L. Saito c301d870c8 Add native library for Mac i386 2011-05-27 17:14:51 +09:00
Taro L. Saito 41bb30d8d1 Add -static-libgcc option for Mac targets 2011-05-27 17:11:03 +09:00
Taro L. Saito 455c378295 add 2011-05-27 17:08:25 +09:00
Taro L. Saito 8c1f11f306 Upgrade to snappy-1.0.2 2011-05-27 17:04:32 +09:00
Taro L. Saito ab26c13b7b Mac i386 native library 2011-05-26 12:21:07 +09:00
Taro L. Saito f090d23fbd set min Mac OS X version to 10.5 for x86_64, 10.4 for i386 2011-05-26 11:34:17 +09:00
Taro L. Saito 85d9cc9084 Applied a patch from Alec Wysoker for finding snappy DLL via java.library.path 2011-05-26 11:14:01 +09:00
Taro L. Saito 6771e58b46 Fixes issue 13 2011-05-24 15:54:53 +09:00
Taro L. Saito 28f61c00dc Test for builing i386 binary under 64-bit gcc 2011-05-05 10:57:49 +09:00
Taro L. Saito 7e882aa1d9 remove dependency to libstdc++ 2011-05-05 02:08:25 +09:00
Taro L. Saito d1a9a71ee3 Trying to build static snappy native library for amd64 2011-05-05 01:30:06 +09:00
Taro L. Saito bb83928f65 Fix comments 2011-04-26 09:16:16 +09:00
Taro L. Saito 5b41b9d1e1 rebuilt 2011-04-11 10:51:28 +09:00
Taro L. Saito b8ab746a9d Split a long string 2011-04-11 10:49:38 +09:00
Taro L. Saito 121b157dc7 Add Mac x86_64 native library 2011-04-07 10:32:08 +09:00
Taro L. Saito 1cf98686d8 Mac i386 native library 2011-04-07 10:31:36 +09:00
Taro L. Saito 55735dc22f Add Linux i386 binary 2011-04-06 23:36:47 +09:00
Taro L. Saito da537415e8 Fix newlines 2011-04-06 23:33:32 +09:00
Taro L. Saito b8fb4a28d6 windows x86 binary 2011-04-06 23:27:55 +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 3094c71c8a Revert to the previous version since the native library build under Mac OS X x86_64 (using make mac32) didn't work in Mac OS X i386 2011-04-04 12:57:36 +09:00
Taro L. Saito eb72a19de1 rebuild Mac-i386 native library 2011-04-04 12:52:40 +09:00
Taro L. Saito 9dc81c5193 Add test suite 2011-04-04 12:47:16 +09:00
Taro L. Saito 592d7003c3 Add tests using calgary data set 2011-04-04 12:43:04 +09:00
Taro L. Saito 8f0260433c use old-style FileResource for 1.5 compatibility 2011-04-04 10:37:34 +09:00
Taro L. Saito 8d1482e395 Fix for Mac-i386 environment 2011-04-04 10:31:01 +09:00
Taro L. Saito 20f265ba90 Use the Java 1.5 compatible constructor in IOException 2011-04-04 10:17:14 +09:00
Taro L. Saito e77174e041 Fixes issue 9. The cause of slow-performance in streaming mode was default buffer size 8MB. When I changed it from 8MB to 8KB, the decompression (stream) performance was improved. 2011-04-03 17:54:52 +09:00
Taro L. Saito b694432815 add calgary test data set 2011-04-03 17:51:00 +09:00
Taro L. Saito 0a4ee3c6fb working on issue 9 2011-04-03 17:05:33 +09:00
Taro L. Saito a31f53b24c Fixes issue 8 2011-04-03 16:10:42 +09:00
Taro L. Saito 0644e3f657 Use 4MB as the default block size 2011-04-01 17:28:41 +09:00
Taro L. Saito d90c7fa7d8 Add a simple test 2011-04-01 11:09:27 +09:00
Taro L. Saito 2f29ce3426 Fixes issue 3 2011-03-31 22:56:43 +09:00
Taro L. Saito 12069f4624 Add SnappyInputStream test 2011-03-31 22:52:44 +09:00
Taro L. Saito 91a087f449 Add SnappyInputStream 2011-03-31 22:49:27 +09:00
Taro L. Saito 0fcb9f8b9a Add preamble to Snappy stream 2011-03-31 21:47:47 +09:00
Taro L. Saito b1158e563f Write a version header and block size information to the output of SnappyOutputStream 2011-03-31 20:14:40 +09:00
Taro L. Saito 717a1a9a59 add sample data 2011-03-31 18:55:48 +09:00
Taro L. Saito 8eef232a5f add SnappyOutputStream test 2011-03-31 18:55:37 +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 c0b8b0be9c add Linux-amd64 binary 2011-03-31 17:22:40 +09:00
Taro L. Saito 3f77d555c7 add linux-i386 binary 2011-03-31 17:11:11 +09:00
Taro L. Saito 680e94daa7 add Mac binary 2011-03-31 17:09:42 +09:00
Taro L. Saito 7da65e5e69 add win32 binary 2011-03-31 17:07:07 +09:00
Taro L. Saito 41debf9cb6 Fixes issue 4 2011-03-31 17:06:33 +09:00
Taro L. Saito 4935319db1 add byte[] based compress/decompress methods 2011-03-31 15:49:51 +09:00
Taro L. Saito 4fbb0db44f add Mac-i386 binary 2011-03-31 12:27:00 +09:00
Taro L. Saito 5b9633251a Fix build dependencies 2011-03-31 12:23:57 +09:00
Taro L. Saito b7b1785833 Fix dependency order around unpacking snappy-src archive 2011-03-30 23:26:29 +09:00
Taro L. Saito 1da382411f Use utf-8 for copying resource files 2011-03-30 23:03:52 +09:00
Taro L. Saito 168d3f06e6 add isValidCompressedBuffer() 2011-03-30 22:54:21 +09:00
Taro L. Saito 14d38c9c12 add x86 native library 2011-03-30 19:16:29 +09:00
Taro L. Saito af15244d83 Set the deploy location to pom.xml 2011-03-30 17:59:33 +09:00
Taro L. Saito ee5f8fb622 add mvn package phase to Makefile 2011-03-30 17:34:05 +09:00
Taro L. Saito 9b71b7725a add Linux-amd64 binary 2011-03-30 17:19:35 +09:00
Taro L. Saito 509ccf70f0 add Linux-i386 binary 2011-03-30 17:08:52 +09:00
Taro L. Saito 594571dcea add mac-x86_64 native library 2011-03-30 16:45:19 +09:00
Taro L. Saito 71d064b8c5 add test for reading from intermediate positions of a buffer 2011-03-30 16:01:36 +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 fa2fcabc43 adjust buffer size 2011-03-30 14:05:23 +09:00
Taro L. Saito 165168f1cb removed obsolete dll 2011-03-30 14:05:14 +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 e39178e719 add win64 library 2011-03-30 13:42:55 +09:00
Taro L. Saito 158991f100 Move native API to SnappyNative.java 2011-03-30 13:08:36 +09:00
Taro L. Saito 4e59477bf6 use -shared flag 2011-03-30 11:20:18 +09:00
Taro L. Saito 7be32f4746 Fix JNI wrapper interfaces 2011-03-30 11:10:57 +09:00
Taro L. Saito 61de0555db Load a native library according to the current OS and CPU architecture 2011-03-30 09:37:04 +09:00
Taro L. Saito 517b64ecff Add test 2011-03-30 00:07:55 +09:00
Taro L. Saito e0ab15b49b Fixes packaging for Maven 3.x 2011-03-30 00:07:46 +09:00
Taro L. Saito e09c3d1439 Add native DLL loader 2011-03-29 23:45:23 +09:00
Taro L. Saito 7b52820c44 Fix the dependency to JNI header 2011-03-29 23:45:04 +09:00
Taro L. Saito 0e5ada2f90 add OSInfo class 2011-03-29 22:19:58 +09:00
Taro L. Saito 6941f27914 add win64 native library of snappy 2011-03-29 20:30:47 +09:00
Taro L. Saito d9fa5f1b25 create a folder for native libraries 2011-03-29 18:51:36 +09:00
Taro L. Saito b4cb446ff8 add native implementation 2011-03-29 18:36:02 +09:00
Taro L. Saito b1e5ea1076 add JNI interface 2011-03-29 18:17:07 +09:00
Taro L. Saito 7f7efafe70 add Makefile 2011-03-29 16:57:23 +09:00