---
# System prepended metadata

title: 12/22
tags: [JAVA]

---

# 12/22

###### tags: `JAVA`


# io
![](https://i.imgur.com/y8yKk4r.png)
reader.writer處理文字
io =byte 0101
# FileInputStream
![](https://i.imgur.com/nJnjCkJ.png)
![](https://i.imgur.com/doaeZGl.png)
![](https://i.imgur.com/Wrkls2x.png)
![](https://i.imgur.com/O8CLQwy.png)
# byte
![](https://i.imgur.com/sqNfev2.png)
![](https://i.imgur.com/3Gy0gfr.png)
# 完整io
![](https://i.imgur.com/P5fkVxu.png)
# 合併
![](https://i.imgur.com/1p2HrPk.png)
![](https://i.imgur.com/xXPXiV5.png)
不需要finally(最後)
![](https://i.imgur.com/KrBmCwv.png)
# AutoCloseable 只有一個方法 叫 close
![](https://i.imgur.com/Svxxa7I.png)
# BufferdInputStream
![](https://i.imgur.com/8s20Rjl.png)
# write
殼
![](https://i.imgur.com/PoUK6aq.png)
![](https://i.imgur.com/cIafbSr.png)
# getbytes
![](https://i.imgur.com/F9fwTZU.png)
# ImageDownload 圖片
![](https://i.imgur.com/0ol8sax.png)
![](https://i.imgur.com/obsJN9d.png)
![](https://i.imgur.com/pnsUvLt.png)
# 抓取圖片
![](https://i.imgur.com/yALl3Zh.png)
![](https://i.imgur.com/pgbwdTw.png)
確認檔案內新增圖片
![](https://i.imgur.com/8lvoZix.png)
# 讀取寫入方式
![](https://i.imgur.com/hftia5C.png)
![](https://i.imgur.com/eaay5q5.png)
![](https://i.imgur.com/DhnhRps.png)
# 看檔案大小 size
![](https://i.imgur.com/khURARe.png)
# byte 大小影響記憶體 效能速度
越小般的越多次效能越差 越大..效能速度快
![](https://i.imgur.com/Ebx6x3W.png)
# 網路上方法  
講解 !=-1
![](https://i.imgur.com/CrCgZwS.png)
# FileReader
![](https://i.imgur.com/kdzESu1.png)
sample > io.reader 取這兩個檔案 放入資料夾
![](https://i.imgur.com/9RjkvPa.png)
# read
![](https://i.imgur.com/kwfCQa4.png)
![](https://i.imgur.com/S1yOZwP.png)
# 預設編碼格式
![](https://i.imgur.com/QKrc9Hd.png)
# cmd執行
![](https://i.imgur.com/FJ0f1eP.png)
C:\java\JavaWorkspace\JavaLab\bin>
java -cp . io.reader.TestFileReader
![](https://i.imgur.com/n8fYtZm.png)
C:\java\JavaWorkspace\JavaLab\bin>
java -Dfile.encoding=UTF8 -cp . io.reader.TestFileReader
![](https://i.imgur.com/ktEgCmJ.png)
# 只有Reader子類別可以指定編碼
![](https://i.imgur.com/vr73uAQ.png)
# 指定編碼Reader
![](https://i.imgur.com/rxsbI5e.png)
# BufferedReader
![](https://i.imgur.com/aXm4RJy.png)
![](https://i.imgur.com/0QCUJCi.png)
# BufferedWriter
![](https://i.imgur.com/2rrGTOZ.png)
![](https://i.imgur.com/cIWqHyx.png)
txt查看
![](https://i.imgur.com/zgt9YCf.png)
# 讀取csv
![](https://i.imgur.com/jJjEn3o.png)
![](https://i.imgur.com/jVReDWx.png)
![](https://i.imgur.com/9YQ9ST8.png)
![](https://i.imgur.com/PBDRGdP.png)
,分隔
![](https://i.imgur.com/ixU2K7N.png)
去掉薪水 擋頭
![](https://i.imgur.com/2XnPOML.png)
+總 sum
![](https://i.imgur.com/V0VpqOJ.png)
parser
![](https://i.imgur.com/JmELuwb.png)
http://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVParser.html
# Scanner
![](https://i.imgur.com/QD1BlbS.png)
![](https://i.imgur.com/JkKG40f.png)

![](https://i.imgur.com/ce1juZa.png)
1.紅框java執行
2.執行緒
# Thread
![](https://i.imgur.com/6Kc0fqU.png)
![](https://i.imgur.com/ySZo5Ky.png)
# Daemon
![](https://i.imgur.com/lylJJmr.png)
Runnable
![](https://i.imgur.com/gUvep9q.png)
常用作法
![](https://i.imgur.com/555MVkm.png)
join
![](https://i.imgur.com/JOfzNNs.png)

# Runnable
![](https://i.imgur.com/TjA641R.png)


# work 
![](https://i.imgur.com/XYSOWHc.png)

