Learning Java IO indexes
I/O Streams, it simplifies I/O operations, write a whole object out to stream & read back. File I/O and file system operations, including random access files.
Classes about I/O Streams most are in java.io, about File I/O are in java.nio.file.
I/O Streams:
- Byte Streams: raw binary data
- Character Streams: character data, auto translation from/to local charset
- Buffered Streams: opt I/O by reducing calls to native API
- Scanning and Formatting: read/write formattedly
- I/O from the Command Line
- Data Streams: binary I/O of primitive data type & String Values
- Object Streams: binary I/O of objects
File I/O (Featuring NIO.2)
- What is a Path?: tells concept of a path in a given OS
- The Path Class: intro of the cornerstorne class of package java.nio.file
- Path Operations: intro to methods of Path class
- File Operations: intro to concepts common to many of the file i/o methods
- Checking a File or Directory: methods to check file existence & accessibility
- Delete/Copy/Move a File/Directory: intros to methods
- Managing Metadata: methods to read/set file attributes
- Reading, Writing, Creating Files: stream/channel methods for r/w files
- Random Access Files: method to r/w file in a non-sequentially manner
- Creating/Reading Dir: API of dirs, such as ls/dir/mkdir in shell
- Links, Symbolic or Otherwise: methods of symbolics/hard links
- Waling the File Tree: methods behaves like for /r in cmd
- Finding Files: use pattern matching to search for files
- Watching a Dir for Changes: how to use watch service to detect files adding/removing/updating in 1 or more dirs
- Other Useful Methods: APIs not mentioned
- Legacy File I/O Code: .. to update from legacy java.io.File class, a table mapping java.io.File to java.nio.file provided
Learning Java IO indexes的更多相关文章
- Learning Java language Fundamentals
Chapter 2 Learning Java language fundamentals exercises: 1.What is Unicode? Unicode is a computing ...
- java.IO输入输出流:过滤流:buffer流和data流
java.io使用了适配器模式装饰模式等设计模式来解决字符流的套接和输入输出问题. 字节流只能一次处理一个字节,为了更方便的操作数据,便加入了套接流. 问题引入:缓冲流为什么比普通的文件字节流效率高? ...
- Java:IO流与文件基础
Java:IO流与文件基础 说明: 本章内容将会持续更新,大家可以关注一下并给我提供建议,谢谢啦. 走进流 什么是流 流:从源到目的地的字节的有序序列. 在Java中,可以从其中读取一个字节序列的对象 ...
- Java IO之字符流和文件
前面的博文介绍了字节流,那字符流又是什么流?从字面意思上看,字节流是面向字节的流,字符流是针对unicode编码的字符流,字符的单位一般比字节大,字节可以处理任何数据类型,通常在处理文本文件内容时,字 ...
- java Io流向指定文件输入内容
package com.hp.io; import java.io.*; public class BufferedWriterTest{ public static void main(String ...
- java Io文件输入输出流 复制文件
package com.hp.io; import java.io.FileInputStream; import java.io.FileNotFoundException; import java ...
- java Io流更新文件内容
package com.hp.io; import java.io.FileOutputStream; import java.io.IOException; public class FileOut ...
- java IO流详解
流的概念和作用 学习Java IO,不得不提到的就是JavaIO流. 流是一组有顺序的,有起点和终点的字节集合,是对数据传输的总称或抽象.即数据在两设备间的传输称为流,流的本质是数据传输,根据数据传输 ...
- java.io.NotSerializableException: test.io.file.Student
java.io.NotSerializableException: test.io.file.Student at java.io.ObjectOutputStream.writeObject0 ...
随机推荐
- Mysql授权远程登录
在命令行输入如下命令即可: Grant all privileges on *.* to ' with grant option; 再执行 flush privileges
- 用Bash脚本将Linux普通用户添加为系统管理员
将Linux普通用户添加为系统管理员在Gnome或KDE这样强大与完善的桌面环境下是非常简单的事情,一般来说在用户设置的对话框里就直接有相应选项.不过,出于简洁与高效的风格,自己目前并未使用这些高端但 ...
- poj 1142 Smith Numbers
Description While skimming his phone directory in 1982, Albert Wilansky, a mathematician of Lehigh U ...
- eclipse启动Heritrix
首先下载heritrix-1.14.4-src源码.可以在http://sourceforge.net/projects/archive-crawler/files/archive-crawler ( ...
- yali项目的slider
// 调用 var s41 = new slider({ target : '#slider411', titleActiveClass : 'j-active', itemActiveClass : ...
- robotframework代码定位感悟
robotframework代码定位感悟: 在做自动化的时候,有时候还是要考虑真实的操作,考虑人为反应,网络,页面渲染,服务器处理请求的过程及数据是否真实到达响应的位置, 不能一味的按照程序的速度 去 ...
- mysql字符集问题
背景:数据库表信息乱码问题 影响:数据库连接初始化中断 原因:init_connect参数设置问题,参数为不可执行语句. 1.1 DB字符集参数 #数据库中的字符集设置(以下全部为修改过后的结果) m ...
- 2.Perl 多线程:Threads(线程返回值)
use warnings; use strict; use threads; sub TEST{ print "Hello, World!\n"; 'a'/); } #返回列表方法 ...
- CodeFroces--Good Bye 2016-A-New Year and Hurry(水题-模拟)
A. New Year and Hurry time limit per test 1 second memory limit per test 256 megabytes input standar ...
- RecyclerView.Adapter
RecyclerView无需多说,是用于替代ListView的新控件.它的适配器在于灵活. 现在有一个需求:需要RecyclerView的item支持点击事件,并且下拉到最后时,显示ProgressB ...