日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

java rt_java中rt包中源码了解

發布時間:2025/3/8 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java rt_java中rt包中源码了解 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

javap –verbose class名 查看class文件的具體內容

javap -c class名

繼續看io類

接口 java.io.Closeable

功能:關閉流和相應的資源

java.io.console

功能:使用字節控制臺,與當前的java virtual machine 相關

java.io.DataInput

功能:從二進制流中讀取字節

java.io.DataInputStream

功能:從一個輸入流中讀取原始java數據類型。

public class DataInputStream extends FilterInputStream implements DataInput

java.io.DataOutput

功能:任何java原始類型的數據轉化為字節,將這些字節寫到字節流流中

java.io.DataOutputStream

功能:將原始的java數據類型寫入輸出流中,也可以用datainputstream將數據讀回

java.io.DeleteOnExitHook

功能:持有已經刪除的文件集

java.io.EOFException

功能:指示文件的結尾,或已到達流文件的結尾。

java.io.ExpiringCache

功能:清除過期的實體對象

static class Entry {

private long?? timestamp;

private String val;

Entry(long timestamp, String val) {

this.timestamp = timestamp;

this.val = val;

}

long?? timestamp()????????????????? { return timestamp;?????????? }

void?? setTimestamp(long timestamp) { this.timestamp = timestamp; }

String val()??? ????????????????????{ return val;???????????????? }

void?? setVal(String val)?????????? { this.val = val;???????????? }

}

java.io.Externalizable

功能:只有實現了這個接口的實例才會寫入序列化的流中,負責保存這個實例的內容。

java.io.File

功能:代表抽象的文件和目錄路徑名

By default the classes in the

java.io package always resolve relative pathnames against the

current user directory.? This directory is named by the system property

user.dir, and is typically the directory in which the Java

virtual machine was invoked.

static private FileSystem fs = FileSystem.getFileSystem();

file.separator

On UNIX systems the value of this

field is '/';

on Microsoft Windows systems it is '\\'.

public static final char separatorChar = fs.getSeparator();

This character is used to

separate filenames in a sequence of files given as a path list.

On UNIX systems, this character is ':'; on Microsoft Windows systems it is ';'.

public static final char pathSeparatorChar = fs.getPathSeparator();

public File(URI uri) {

// Check our many preconditions

if (!uri.isAbsolute())

throw new IllegalArgumentException("URI is not absolute");

if (uri.isOpaque())

throw new IllegalArgumentException("URI is not hierarchical");

String scheme = uri.getScheme();

if ((scheme == null) || !scheme.equalsIgnoreCase("file"))

throw new IllegalArgumentException("URI scheme is not \"file\"");

if (uri.getAuthority() != null)

throw new IllegalArgumentException("URI has an authority component");

if (uri.getFragment() != null)

throw new IllegalArgumentException("URI has a fragment component");

if (uri.getQuery() != null)

throw new IllegalArgumentException("URI has a query component");

String p = uri.getPath();

if (p.equals(""))

throw new IllegalArgumentException("URI path component is empty");

// Okay, now initialize

p = fs.fromURIPath(p);

if (File.separatorChar != '/')

p = p.replace('/', File.separatorChar);

this.path = fs.normalize(p);

this.prefixLength = fs.prefixLength(this.path);

}

總結

以上是生活随笔為你收集整理的java rt_java中rt包中源码了解的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。