Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java ¶ÁдÎļþ²Ù×÷


Java¶ÁÎļþдÎļþ²Ù×÷
By Aillo on March 27, 2008 7:56 PM | 0 Comments | Previous | Next | EDIT
    ÕâÀJavaµÄ¶ÁÎļþºÍдÎļþ¶¼ÊÇ»ùÓÚ×Ö·ûÁ÷µÄ£¬Ö÷ÒªÓõ½ÏÂÃæµÄ¼¸¸öÀࣺ
1¡¢FileReader----¶ÁÈ¡×Ö·ûÁ÷
2¡¢FileWriter----дÈë×Ö·ûÁ÷
3¡¢BufferedReader----»º³åÖ¸¶¨ÎļþµÄÊäÈë
¸ÃÀàµÄ·½·¨ÓУº
void close() 
        ¹Ø±Õ¸ÃÁ÷¡£
 void mark(int readAheadLimit) 
        ±ê¼ÇÁ÷Öеĵ±Ç°Î»Öá£
 boolean markSupported() 
        ÅжϴËÁ÷ÊÇ·ñÖ§³Ö mark() ²Ù×÷£¨ËüÒ»¶¨Ö§³Ö£©
int read() 
        ¶ÁÈ¡µ¥¸ö×Ö·û¡£
 int read(char[] cbuf, int off, int len) 
        ½«×Ö·û¶ÁÈëÊý×éµÄijһ²¿·Ö¡£
 String readLine() 
        ¶ÁÈ¡Ò»¸öÎı¾ÐС£
 boolean ready() 
        ÅжϴËÁ÷ÊÇ·ñÒÑ×¼±¸ºÃ±»¶ÁÈ¡¡£
 void reset() 
        ½«Á÷ÖØÖÃΪ×îеıê¼Ç¡£
 long skip(long n) 
        Ìø¹ý×Ö·û¡£
4¡¢BufferedWriter----½«»º³å¶ÔÎļþµÄÊä³ö
¸ÃÀàµÄ·½·¨ÓУº
void close() 
        ¹Ø±Õ¸ÃÁ÷¡£
 void flush() 
        Ë¢Ð¸ÃÁ÷µÄ»º³å¡£
 void newLine() 
        Ð´ÈëÒ»¸öÐзָô·û¡£
 void write(char[] cbuf, int off, int len) 
        Ð´Èë×Ö·ûÊý×éµÄijһ²¿·Ö¡£
 void write(int c) 
        Ð´Èëµ¥¸ö×Ö·û¡£
 void write(String s, int off, int len) 
        Ð´Èë×Ö·û´®µÄijһ²¿·Ö¡£
¾Ù¸öÀý×ÓÈçÏ£º
package aillo;
import java.io.*;
public class FileWriterReader {
//¹¦ÄÜ:


Ïà¹ØÎĵµ£º

ArrayParameters.java £¨j»ù p45£©

//´«µÝ²ÎÊý£¬ºÍcÖд«µØÖ·ÓеãÏñ
public class ArrayParameters {
public static void changeOrNot (int i, double[] x) {
i =-1;
x[0] = -2.0;
double[] y = x;
y[1] = -3.0;
double[] z = {4.0, 4.0, 4.0};
x = z;
}
public static void main (String[] args) {
String s1 = ......

JAVA³£ÓòÙ×÷Óï¾ä ÏîÄ¿ÖеÄ×ܽá¶þ


jspÊä³ö¸ñʽ»¯ºóµÄÈÕÆÚ
<fmt:formatDate value="${whiteNumber.crtdate }" pattern="yyyy-MM-dd HH:mm:ss"/>
ÈçÊÇmodelÀïµÄlistÔÚactionÖÐÈ¡²»µ½Öµ¡£¿ÉÄÜÔÚ¸ÃmodelÖеÄlistµÄsetterºÍgetter·½Ê½ÖУ¬Ê¹ÓõĿÉÄÜÊÇlazy¼ÓÔØ£¬¸ÄΪEAGER¼´¿É¡£
<s:iterator>±êÇ©ÀﻹÓÐ<s:iterator>± ......

ÓÃC££¡¢JAVAÒ»´ÎÐÔÈ¡³ö´æ´¢¹ý³ÌÖеĸ÷ÖÖ·µ»ØÖµ

ÎÊÌ⣺ÔÚ´æ´¢¹ý³ÌÖУ¬ÓÐʱ»áÓöµ½±È½Ï±ä̬µÄ¶«Î÷£¬ÈçÒ»¸ö´æ´¢¹ý³ÌÖÐÓÐoutput·µ»ØÖµ£¬ÓÐreturn·µ»ØÖµ£¬»¹ÓвéѯµÄ·µ»ØÖµTABLE£¬Óöµ½ÕâÑùµÄ´æ´¢¹ý³ÌÕæÊÇÓôÃÆ£¬Ò»´ÎÐÔ°ÑËùÓеķµ»Øֵȡ³öÀ´»¹ÕæµÄÓеãÂé·³¡£
 
 
1¡¢  Ê×ÏÈÀ´¿´Õâ¸ö´æ´¢¹ý³Ì°É
 
CREATE  PROCEDURE ParaTest
@paraout varchar(20) ......

java²Ù×÷pdf£¨½â¾öÖÐÎĵ¼³öÎÊÌ⣩


Java iText ¶¯Ì¬ Éú³É PDF Îĵµ ±í¸ñ ÖÐÎÄÎÊÌâ
 
iTextÊÇÒ»¸ö¿ª·¢Ô´´úÂëµÄÏîÄ¿£¬Äã¿ÉÒÔʹÓÃiText·½±ãµÄʵÏÖPDFµÄÊä³ö¡£
 
 
Ò»¡¢iTextµÄÏÂÔØ£º
    Äã¿ÉÒÔÔÚ http://www.lowagie.com/iText/ ²é¿´¹ØÓÚiTextµÄÏà¹ØÐÅÏ¢£¬°üÀ¨Ô´´úÂ룬Îĵµ..
    1. itext-src-1.4 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ