Online search for a long time, and finally found three kinds of good methods:
1, the JDK comes with the package java.util.zip.ZipOutputStream, the deficiency, the file (folder) name with Chinese,
There is a garbled problem, the implementation code
Recent research jetty source code, found that the code inside the container can not understand, are all Java syntax, is basically reflective + design mode + configuration file. Very inexplicable wonderful method of calling. There is a call to the
# # #struts2 complete file Download:1. First clear the basic knowledge: InputStream and FileInputStream, etc. are for memory, then the file input stream must be to the memory input stream, which is useful for file downloading. Essential
Log4j is an open source project for Apache, by using log4j, we can control the destination of log information delivery is console, file, GUI component, even interface server, NT Event recorder, UNIX syslog daemon, etc. We can also control the output
I said that the network programming refers to the socket programming, first of all, in the Java language to write the socket program, the common anomalies, reasons and solutions, and then talk about writing a network program need to pay attention to
Reprint Please note: http://blog.csdn.net/wjzj000/article/details/53227352
Personal GitHub on the two small open source projects, I hope that the big guys can support star. Https://github.com/zhiaixinyang/PersonalCollect (GitHub the excellent
Job-hopping is happening all the time, but I suggest that you want to know why you want to change jobs before you jump. Must not follow the trend, see colleagues have gone, they also blindly interview up (during the period is not fully prepared), in
inherit thread class:
In Java, the support for multithreading technology is brought in. Inherit thread and implement the Runnable interface. Look at the results of the thread class first, as follows:
Public class Thread implements Runnable
It is
The most common use of map is HashMap, but hashmap elements are not in the order to add, then in addition to the use of HASHMAP, what map interface implementation classes can be used.
There are 2 of them, TreeMap and Linkedhashmap, but to meet our
[Java] View Plain copy package org.rui.hi; /** * test: Solution scenario: 100 million of users stored in a queue, too large. redis cluster sharding Redis * with sharding The cluster uses data fragmentation (sharding) rather
In Resultmap, the properties of a Java entity class are typically mapped to a field on a database table using the ID, result child element. But if you encounter JavaBean with only a parameter constructor, I also need to implement a JavaBean
Java write local orc file (Hive2 API)
Hive2.0 later, a new API was used to read and write orc files (https://orc.apache.org).The code in this article generates the Orc file locally using a Java program, and then loads it into the hive table.The
Before we get started, let's take a look at what Apache Avro really is. Can be used to do anything.
Apache Avro is a data serialization system. Serialization is the conversion of objects into binary streams, and the corresponding deserialization is
static variables and methods
Static Variables
For the member variables of the class, each object has its own member variable in memory, and the object's method action is the variable acting on the object itself, and the data of each object is
Reference: http://blog.163.com/shanqing_shuixiu@yeah/blog/static/165319229201192444434865/
Talk is cheap,show me the code!
Multiple folders under the same folder to make a ZIP package
import java.io.bufferedinputstream; import java.io.file;
Here is a summary of the search steps for the thread resource footprint of the Linux, Sun (Oracle) JDK; In a Linux environment, when the Java process is found to be high in CPU resources and want to further identify which Java thread is consuming
view Self-brought Java information
[Root@zck ~]# Java-versionJava Version "1.7.0_"OpenJDK Runtime Environment (IcedTea6 1.11.1) (rhel-1.45.1.11.1.el6-x86_64)OpenJDK 64-bit Server VM (build 20.0-b12, Mixed mode) to further view JDK
A file operation similar to a node, a key value format, There is already a R5 jar tool provided by Com.nikhaldimann, however, if the frequent operation and the attributes are particularly large, even if the common method of extraction is still to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service