On the bug of GZIPInputStream
http://cin-ie.iteye.com/blog/859822
As for the bug of GZIPInputStream, this problem has not been solved in the latest version of jdk. Note when using gzip:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4691425
Problem Description:
When using GZIPInputStream to read the gizp file, us ...
Posted by roomyz on Thu, 13 Feb 2020 06:58:13 -0800
[Java] Object class, common API and wrapper class
1, Object class
1. Introduction to object class
*The Object class is the parent class of all classes. If a class does not specify an inherited class, it inherits the Object. Any class directly or indirectly inherits from Object
2. Method of object class
① toString()
* Source code
public String toString() {
return getCla ...
Posted by moleculo on Wed, 12 Feb 2020 05:14:52 -0800
Summary of common encryption tool classes Base64, DES, AES, RSA, MD5
Article directory
Introduction
1. Base64 encryption
2. DES encryption
3. AES encryption
4. RSA encryption
5. MD5 encryption
Introduction
In the project, Base64, DES, AES, RSA, MD5 encryption and decryption methods are often used. Every time, they need to search online for half a day. Today, they ...
Posted by hitman6003 on Wed, 12 Feb 2020 03:09:45 -0800
Android source compilation
Android source compilation
Before compiling the source code, you need to do some preparation operations. The detailed steps are as follows:
1. Install JDK. Google requires JDK 1.8 to compile the latest version of source code
1) . download JDK1.6 at: http://download.oracle.com/otn/java/jdk/6u45-b06/jdk-6u45-linux-x64.b ...
Posted by joeywoodbury on Sun, 09 Feb 2020 08:49:09 -0800
maven common plug-ins
1, Maven compiler plugin
1. It is used to set the jdk version used when maven is packaged. maven is a java framework, so it is only for jdk. scala needs to set it separately.
2.usage
2.1. Setting plug-ins
<plugin> ...
Posted by Rohan Shenoy on Sun, 09 Feb 2020 00:46:26 -0800
Iterator Mode and Java Iterator Source
Iterator mode
Iterator mode is a design mode that separates the addition and deletion of a set from the sequential traversal of the set.Collections are responsible for additions, deletions, and iterators are responsible for sequential traversal of the collection's internal classes.Java's Iterator is a ...
Posted by gsv2com on Fri, 07 Feb 2020 20:47:32 -0800
Java reflection -- Reflection and class operation
Content learned in: edu.aliyun.com
1. Reflection acquisition class structure
.
if you suddenly find that you need ...
Posted by osram on Thu, 06 Feb 2020 05:25:58 -0800
Apply and publish docker to remote server
docker opens remote access interface
docker has to set up the environment, so it won't be repeated here. It won't have to go to Baidu by itself, just a few commands.
To push a local image to the docker container of alicloud, you need to enable remote access
First edit the host file of docker / lib/sys ...
Posted by Celadon on Wed, 05 Feb 2020 02:15:10 -0800
javaSE learning notes - day 25 multithreading II. GUI overview
javaSE learning day 25
java knowledge
Multithreading (single design mode)
Singleton design pattern: ensure that the class has only one object in memory.
How to ensure that a class has only one object in memory?
(1) Control the creation of classes. Do not let other classes create objects of ...
Posted by amithn12 on Wed, 05 Feb 2020 00:38:49 -0800
Talk about network healthcheck of artemis
order
This paper focuses on the network health check of artemis
NetworkHealthCheck
activemq-artemis-2.11.0/artemis-commons/src/main/java/org/apache/activemq/artemis/core/server/NetworkHealthCheck.java
public class NetworkHealthCheck extends ActiveMQScheduledComponent {
private static final Logger logger = Logger.getLogger(NetworkHealthCheck ...
Posted by jasonc310771 on Tue, 04 Feb 2020 06:34:14 -0800