当前位置:网站首页>Guava-IO
Guava-IO
2022-06-25 05:37:00 【Which floor do you rate moto】
To byte stream / The tools and methods provided by the character stream
ByteStreams: Provide right InputStream/OutStream The operation of
CharStreams: Provide right Reader/Writer The operation of
To the source (Source) And exchange (Sink) The abstraction of
The source is readable :ByteSource/CharSource
Remittance is writable :ByteSink/CharSink
public class IoTest {
public static void main(String[] args) throws IOException {
CharSource charSource = Files.asCharSource(new File("SourceTest.txt"), StandardCharsets.UTF_8);
CharSink charSink = Files.asCharSink(new File("TargerTest.txt"), StandardCharsets.UTF_8);
// copy to charSink in
charSource.copyTo(charSink);
// Read all
System.out.println(charSource.read());
// Read first line
System.out.println(charSource.readFirstLine());
// Read as immutable set
ImmutableList<String> strings = charSource.readLines();
System.out.println(strings);
}
}边栏推荐
- Mobile number regular expression input box loses focus verification
- Deeply understand the characteristics of standard flow and off standard elements
- JMeter stress testing and agent recording
- Could not find “store“ in the context of “Connect(homePage)
- Vue uses keep alive to cache page optimization projects
- Native JS high risk reminder pop-up code snippet, "are you sure you want to do this?" and "it cannot be recovered after deletion. Do you want to continue“
- Edge loss interpretation
- Tanhaoqiang C language practice
- Matlab notes
- Electronic Society C language level 1 28, character diamond
猜你喜欢

Deep learning non local neural networks

How to install the blue lake plug-in to support Photoshop CC 2017

2022.1.25

Semantic segmentation cvpr2019-advance: advantageous enterprise minimization for domain adaptation in semantic segmentation

Code learning-cvpr2020 unsupervised domain adaptive semantic segmentation: intra advance

Semantic segmentation cvpr2020 unsupervised intra domain adaptation for semantic segmentation through self supervision
![Bind simulation, key points of interpreting bind handwritten code [details]](/img/03/6aa300bb8b8342199aed5a819f3634.jpg)
Bind simulation, key points of interpreting bind handwritten code [details]

Detailed summary of float

SSRF-lab
![[day40 literature extensive reading] space and time in the child's mind: metallic or atomic](/img/98/10b3e63c9609990c51b619d9ca6179.jpg)
[day40 literature extensive reading] space and time in the child's mind: metallic or atomic
随机推荐
Customize the console plot result style
Five simple data types of JS
Basic knowledge of web pages (URL related)
Instant messaging project (I)
Oracle SQL statement operand: rounding, rounding, differentiation and formatting
Jenkins installation and configuration
[pan Wai 1] Huawei computer test
Deep learning non local neural networks
Voxel based and second network learning
Double recursion in deep analysis merge sort
JS function to realize simple calculator
[day40 literature extensive reading] space and time in the child's mind: metallic or atomic
Creation and use of MySQL index
Get the first letter of Chinese phonetic alphabet in Excel and capitalize it
Keyboard key code value
Characteristics of ES6 arrow function
05 virtual machine stack
Mobile number regular expression input box loses focus verification
Jason learning
Create dynamic array