René's URL Explorer Experiment


Title: Interview-Notebook/notes/Java IO.md at master · codeyu/Interview-Notebook · GitHub

Open Graph Title: Interview-Notebook/notes/Java IO.md at master · codeyu/Interview-Notebook

X Title: Interview-Notebook/notes/Java IO.md at master · codeyu/Interview-Notebook

Description: :books: 技术面试需要掌握的基础知识整理. Contribute to codeyu/Interview-Notebook development by creating an account on GitHub.

Open Graph Description: :books: 技术面试需要掌握的基础知识整理. Contribute to codeyu/Interview-Notebook development by creating an account on GitHub.

X Description: :books: 技术面试需要掌握的基础知识整理. Contribute to codeyu/Interview-Notebook development by creating an account on GitHub.

Opengraph URL: https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/blob/*name(/*path)
route-controllerblob
route-actionshow
fetch-noncev2:f6c67586-4d48-4cfa-6092-4709a928a20f
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id94C2:3949F8:5709F3:770C44:6A552947
html-safe-nonce073fc5924a1393c79ab647be131222a22e970c262c840b9dffcbe24760a781dd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEMyOjM5NDlGODo1NzA5RjM6NzcwQzQ0OjZBNTUyOTQ3IiwidmlzaXRvcl9pZCI6IjU3OTY4NDcyOTczOTM2NjYzNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2a254fd0c57000441cc62bde3dc4b6d04308e798ad7ae02cad73005e5c77bd9c
hovercard-subject-tagrepository:127409176
github-keyboard-shortcutsrepository,source-code,file-tree,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///blob/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md
twitter:imagehttps://opengraph.githubassets.com/16ec9757708bc107ec2c13821ccb2ae2362e502c5405d5f29be93ee638fc00bc/codeyu/Interview-Notebook
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/16ec9757708bc107ec2c13821ccb2ae2362e502c5405d5f29be93ee638fc00bc/codeyu/Interview-Notebook
og:image:alt:books: 技术面试需要掌握的基础知识整理. Contribute to codeyu/Interview-Notebook development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5
turbo-cache-controlno-cache
go-importgithub.com/codeyu/Interview-Notebook git https://github.com/codeyu/Interview-Notebook.git
octolytics-dimension-user_id230674
octolytics-dimension-user_logincodeyu
octolytics-dimension-repository_id127409176
octolytics-dimension-repository_nwocodeyu/Interview-Notebook
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id121395510
octolytics-dimension-repository_parent_nwoCyC2018/CS-Notes
octolytics-dimension-repository_network_root_id121395510
octolytics-dimension-repository_network_root_nwoCyC2018/CS-Notes
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release358dd24ad7465d20e3fae729b5b169d35b0dd7f8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodeyu%2FInterview-Notebook%2Fblob%2Fmaster%2Fnotes%2FJava%2520IO.md
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcodeyu%2FInterview-Notebook%2Fblob%2Fmaster%2Fnotes%2FJava%2520IO.md
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&source=header-repo&source_repo=codeyu%2FInterview-Notebook
Reloadhttps://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md
Reloadhttps://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md
Reloadhttps://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md
codeyu https://github.com/codeyu
Interview-Notebookhttps://github.com/codeyu/Interview-Notebook
CyC2018/CS-Noteshttps://github.com/CyC2018/CS-Notes
Notifications https://github.com/login?return_to=%2Fcodeyu%2FInterview-Notebook
Fork 0 https://github.com/login?return_to=%2Fcodeyu%2FInterview-Notebook
Star 0 https://github.com/login?return_to=%2Fcodeyu%2FInterview-Notebook
Code https://github.com/codeyu/Interview-Notebook
Pull requests 0 https://github.com/codeyu/Interview-Notebook/pulls
Actions https://github.com/codeyu/Interview-Notebook/actions
Projects https://github.com/codeyu/Interview-Notebook/projects
Wiki https://github.com/codeyu/Interview-Notebook/wiki
Security and quality 0 https://github.com/codeyu/Interview-Notebook/security
Insights https://github.com/codeyu/Interview-Notebook/pulse
Code https://github.com/codeyu/Interview-Notebook
Pull requests https://github.com/codeyu/Interview-Notebook/pulls
Actions https://github.com/codeyu/Interview-Notebook/actions
Projects https://github.com/codeyu/Interview-Notebook/projects
Wiki https://github.com/codeyu/Interview-Notebook/wiki
Security and quality https://github.com/codeyu/Interview-Notebook/security
Insights https://github.com/codeyu/Interview-Notebook/pulse
https://github.com/codeyu/Interview-Notebook
Interview-Notebookhttps://github.com/codeyu/Interview-Notebook/tree/master
noteshttps://github.com/codeyu/Interview-Notebook/tree/master/notes
Historyhttps://github.com/codeyu/Interview-Notebook/commits/master/notes/Java%20IO.md
https://github.com/codeyu/Interview-Notebook/commits/master/notes/Java%20IO.md
Interview-Notebookhttps://github.com/codeyu/Interview-Notebook/tree/master
noteshttps://github.com/codeyu/Interview-Notebook/tree/master/notes
Rawhttps://github.com/codeyu/Interview-Notebook/raw/refs/heads/master/notes/Java%20IO.md
一、概览https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E4%B8%80%E6%A6%82%E8%A7%88
二、磁盘操作https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E4%BA%8C%E7%A3%81%E7%9B%98%E6%93%8D%E4%BD%9C
三、字节操作https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E4%B8%89%E5%AD%97%E8%8A%82%E6%93%8D%E4%BD%9C
四、字符操作https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E5%9B%9B%E5%AD%97%E7%AC%A6%E6%93%8D%E4%BD%9C
五、对象操作https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E4%BA%94%E5%AF%B9%E8%B1%A1%E6%93%8D%E4%BD%9C
六、网络操作https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E5%85%AD%E7%BD%91%E7%BB%9C%E6%93%8D%E4%BD%9C
InetAddresshttps://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#inetaddress
URLhttps://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#url
Socketshttps://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#sockets
Datagramhttps://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#datagram
七、NIOhttps://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E4%B8%83nio
流与块https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E6%B5%81%E4%B8%8E%E5%9D%97
通道与缓冲区https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E9%80%9A%E9%81%93%E4%B8%8E%E7%BC%93%E5%86%B2%E5%8C%BA
缓冲区状态变量https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E7%BC%93%E5%86%B2%E5%8C%BA%E7%8A%B6%E6%80%81%E5%8F%98%E9%87%8F
文件 NIO 实例https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E6%96%87%E4%BB%B6-nio-%E5%AE%9E%E4%BE%8B
套接字 NIO 实例https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E5%A5%97%E6%8E%A5%E5%AD%97-nio-%E5%AE%9E%E4%BE%8B
内存映射文件https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E5%86%85%E5%AD%98%E6%98%A0%E5%B0%84%E6%96%87%E4%BB%B6
对比https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E5%AF%B9%E6%AF%94
八、参考资料https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#%E5%85%AB%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#一概览
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#二磁盘操作
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#三字节操作
https://github.com/codeyu/Interview-Notebook/blob/master/pics/DP-Decorator-java.io.png
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#四字符操作
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#五对象操作
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#六网络操作
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#inetaddress
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#url
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#sockets
https://github.com/codeyu/Interview-Notebook/blob/master/pics/ClienteServidorSockets1521731145260.jpg
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#datagram
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#七nio
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#流与块
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#通道与缓冲区
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#1-通道
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#2-缓冲区
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#缓冲区状态变量
https://github.com/codeyu/Interview-Notebook/blob/master/pics/1bea398f-17a7-4f67-a90b-9e2d243eaa9a.png
https://github.com/codeyu/Interview-Notebook/blob/master/pics/4628274c-25b6-4053-97cf-d1239b44c43d.png
https://github.com/codeyu/Interview-Notebook/blob/master/pics/952e06bd-5a65-4cab-82e4-dd1536462f38.png
https://github.com/codeyu/Interview-Notebook/blob/master/pics/b5bdcbe2-b958-4aef-9151-6ad963cb28b4.png
https://github.com/codeyu/Interview-Notebook/blob/master/pics/67bf5487-c45d-49b6-b9c0-a058d8c68902.png
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#文件-nio-实例
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#套接字-nio-实例
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#1-serversocketchannel
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#2-selectors
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#3-主循环
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#4-监听新连接
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#5-接受新的连接
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#6-删除处理过的-selectionkey
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#7-传入的-io
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#内存映射文件
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#对比
https://github.com/codeyu/Interview-Notebook/blob/master/notes/Java IO.md#八参考资料
IBM: NIO 入门https://www.ibm.com/developerworks/cn/education/java/j-nio/j-nio.html
深入分析 Java I/O 的工作机制https://www.ibm.com/developerworks/cn/java/j-lo-javaio/index.html
NIO 与传统 IO 的区别http://blog.csdn.net/shimiso/article/details/24990499
Decorator Design Patternhttp://stg-tud.github.io/sedc/Lecture/ws13-14/5.3-Decorator.html#mode=document
Socket Multicasthttp://labojava.blogspot.com/2012/12/socket-multicast.html
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.