Nio:new IOStarting with JDK1.4, the new IO, which can map a disk file into memory, we then read the data in memory.stored in the Java.nio packageJava NIO (new IO) is a new IO API introduced by the Java1.4 version, which can replace the standard Java IO API, which is now primarily used in servers, and is sufficient for us to write code that still uses traditional IO.Java NiO provides a different way of working with iOS than standard IO:Channels and buf
Click to enter _ more _java thousand ask1, Java.math package has what functionThe Java.math package provides a mathematical class in Java. Includes basic floating-point libraries, complex operations, and arbitrary-precision data operations. Main classes such as:?The classes in math are described below:
arbitrary length shapingBigInteger, the arbitrary length of the non-variable shaping. Because the base type has a limited length of shaping,
Click to enter _ more _java FAQ-base Class Library1, Java.math package has what functionThe Java.math package provides a mathematical class in Java. Includes basic floating-point libraries, complex operations, and arbitrary-precision data operations. Main classes such as:?The classes in math are described below:
arbitrary length shapingBigInteger, the arbitrary length of the non-variable shaping. Because the base type has a limited length of sha
()
Template method ModeFeatures: A behavior method that defines the default behavior by an abstract type.
All non-abstract methods of Java.io.InputStream, Java.io.OutputStream, Java.io.Reader and Java.io.Writer classes
All non-abstract methods of Java.util.AbstractList, Java.util.AbstractSet and Java.util.AbstractMap
All Doxxx () methods of the Javax.servlet.http.HttpServlet class default send HTTP 405 "method different meaning" This error to response, you are free to choo
Org.apache.commons.lang.StringUtilsAs a supplement to the Lang package in the JDKCheck if charsequence is empty, null, or blank spaceCharsequence (Charbuffer, Segment, String, StringBuffer, StringBuilder)
IsBlank (charsequence) can check for null, NULL, and space
IsEmpty (charsequence) can only check for null and NULL
There are also Isnotblank (CS) and Isnotempt (CS)
String interceptionSubstring/left/right/mid-null-safe Substring ExtractionsString completionLeftpad/rightpad/center/
JSTL Core Tag Library has a total of 13 tags, functionally divided into 4 categories:
1. Expression control Tags: out, set, remove, catch
2. Process Control Tag: If, choose, when, otherwise
3. Cyclic Tags: forEach, fortokens
4.URL operation tag: import, URL, redirect
When using labels, be sure to include the following code in the header of the JSP file:
These labels are described in the following sections:
1.
[Java Common class library ]
Stringcompress (String compression)
Method Description:
1.compress (String): Zip-Compress a string to return an array of bytes
2.decompress (byte[]): Restores a compressed byte array to a string
Use:
Saved to the database Bolb.
Import Java.io.ByteArrayInputStream;
Import Java.io.ByteArrayOutputStream;
Import java.io.IOException;
Import Java.util.zip.ZipEntry;
Import Java.uti
After writing debugging for a long time, the border is not good processing, detailed see JDK class library, the following is only the basic implementation:Import java.util.iterator;/** * Class Name: Mylinkedlist Description: LinkedList Basic Implementation */public class mylinkedlistBasic implementation of Java class library linklist
Web page is not visible. More is the persistence of the mapping of the errors of the file, resulting in not being parsed, of course, the functionality you need is not available. --------------------------------------------------------------------------------------------------------------- -------------error: standardwrappervalve[action]: Servlet.service () for Servlet Action threw exception Javax.servlet.jsp.JspException:Cannot Retrieve mapping for action/settlementtypemanage or: nbsp; type St
= new random;p rivate final countdownlatch latch; Waitingtask (Countdownlatch latch) {this.latch = latch;} The task of @Overridepublic Void Run () {try {///Call Countdown () is not blocked when the call is generated, only the call to await is blocked until the count reaches the 0//wait for the problem resolved task to invoke await on this latch (), they are stopped by themselves until the latch count ends latch.await (); SYSTEM.OUT.PRINTLN ("Latch barrier is considered" + this);} catch (Interru
The purpose of the Java Container class library is to "save the object" and divide it into two different concepts:
Collection. A sequence of independent elements that obey one or more rules. The List must save the element in the order in which it was inserted, and Set cannot have duplicate elements. The queue determines the order in which objects are produced, usually in the same order in which the
Countdownlatchclass Waitingtask implements Runnable {private static int counter = 0;//count PrivateFinal int id = counter++;p rivate static random rand = new random;p rivate final countdownlatch latch; Waitingtask (Countdownlatch latch) {this.latch = latch;} The Task @Overridepublic void Run () {try {///Call Countdown () is not blocked when the call is generated. Only the call to await will be blocked until the count reaches the 0//waiting for the problem to be solved by calling await () on thi
Java Compression Class Library _ support encryption decompression. zippublic static void Unzip (File zipfile, String dest, String passwd) throws Zipexception {ZipFile zfile = new ZipFile (ZipFile); First create the ZipFile point to the. zip file on the diskZfile.setfilenamecharset ("GBK"); Set the file name encoding to be set in the GBK systemif (!zfile.isvalidzipfile ()) {//verify that the. zip file is val
()) { return-1;//source file not found, return-1 } //If the destination path does not exist, the path is createdFile OutputFile =NewFile (destfile); if(!Outputfile.getparentfile (). exists ()) {Outputfile.getparentfile (). Mkdirs (); } String openoffice_home= "C:\\Program Files (x86) \\OpenOffice 4";//here is the OpenOffice installation directory, in my project, in order to facilitate the expansion of the interface, not directly written li
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.