download zip of files only
Fri Apr 21 23:07:50 GMT 2023
From /weblog/java/features
Introduction to Java Encryption/Decryption - https://dev.java/learn/security/intro/ Java Serialization Filtering: Prevent 0-day Security Vulnerabilities - https://foojay.io[..]g-prevent-0-day-security-vulnerabilities Using JCE with OpenSSL - http://kasparov.skife.org[..]ive/src/java/jce-openssl-redux.writeback ---------- Forwarded message ---------- From: "cab" To: Date: 10 Mar 2005 23:33:16 +0800 Subject: Re: CRC-32
java.util.zip.CRC32 crc32 = new java.util.zip.CRC32(); crc32.update(byteArray); long crcValue = crc32.getValue();
"Day Chan" 撰寫於郵件新聞:[email protected]... > Does anyone know how to calculate CRC-32 in Java? > Thanks~
(google search)
(amazon search)
Wed Jul 06 13:31:29 GMT 2022
From /weblog/java/features
Strategies of loading image, select difference API to load image in difference case - http://java.sun.com[..]rticles/Media/imagestrategies/index.html The Perils of Image.getScaledInstance() , with more detail explanation of image handling - http://today.java.net[..]3/perils-of-image-getscaledinstance.html In Part I we talk about the building blocks of metadata in images and how it may matter to you as developer. - https://hillert.com/blog/read-write-image-metadata-java-part-1/
(google search)
(amazon search)
Sun Jan 09 13:41:28 GMT 2022
From /weblog/java/features
Watch service, watch if directory changed - http://www.javacodegeeks.com/2012/02/java-7-watchservice.html Tips of using bytebuffer - http://worldmodscode.wordpress.com[..]2/14/the-java-bytebuffer-a-crash-course/ path : ..\.\Java.txt absolute path : C:\Users\WINDOWS 8\workspace\Demo\..\.\Java.txt canonical path : C:\Users\WINDOWS 8\workspace\Java.txt Read more: http://javarevisited.blogspot.com[..]getcanonicalpath-java.html#ixzz3A8Zya6YG Jump to a position of a file, inputstream.skip() is faster than reader.skip(), and reader.skip() is faster than randomAccessFile. Java & Files: An Introduction - https://www.marcobehler.com/guides/java-files Modern file input/output with Java: Going fast with NIO and NIO.2 - https://blogs.oracle.com[..]2-buffers-channels-async-future-callback
(google search)
(amazon search)
Sun Jun 20 12:53:30 GMT 2021
From /weblog/java/features
URL handler - http://skife.org[..]ibrary/2012/05/14/java_url_handlers.html , UrlSchemeRegistry.register("dinner", DinnerHandler.class); Talking to Postgres Through Java 16 Unix-Domain Socket Channels - https://www.morling.dev[..]ugh-java-16-unix-domain-socket-channels/
(google search)
(amazon search)
Thu Oct 08 00:22:27 GMT 2020
From /weblog/java/features
Invoking Assembly Language Programs using java native interface - http://today.java.net/lpt/a/330 Best practices for using the Java Native Interface - http://www.ibm.com/developerworks/java/library/j-jni/index.html Other library try to simple using native library - https://inside.java/2020/10/06/jextract/
(google search)
(amazon search)
Mon Jan 06 08:30:32 GMT 2014
From /weblog/java/features
As Java still need to support Collection.get(Object) , it is easy to get NPE if you use wrong type accidentally http://jroller.com/page/sstirling?entry=map_get_object_and_java I met this problem when using wicket, one cool feature of ListMultipleChoice is that if the list I press into the constructor is not List , it will persist the type information. However, if you use this API carelessly and think the List return from the HTML form is always List . Then you will get strangle null pointer exception when you operate with the list instead of ClassCastException, as java will surpress the ClassCastException from ArrayList.get(i) sliencely and just return null to caller.
A related one but not really related to generics - http://www.pankaj-k.net/archives/2006/11/how_hard_is_tes.html , look like the behaviours difference of primittive and wrapper class at NULL is very easy to get hard to check bug
Another one, JDK generic try to cast to wrong class internally: http://jroller.com/page/dhall?entry=exploring_the_limits_of_java
Some cool feature, apply generic in comparable - http://tech.puredanger.com/2006/11/22/comparator-jdk5/
Wildcast in generic -http://javarevisited.blogspot.com[..]-is-bounded-and-unbounded-wildcards.html
http://javarevisited.blogspot.com.au[..]trized-class-method-Generic-example.html
http://mydailyjava.blogspot.com.au[..]6/advanced-java-generics-retreiving.html
(google search)
(amazon search)
|