< Notes > Java SE-06 Java SE IO
06 Java SE IO
By Kevin Song
Overview of 06-01 IO Flow
06-02 Byte Stream and Character Stream
06-02-01 character stream
06-02-02 byte stream
06-02-03 Conversion Flow
Operating Rules of 06-02-04 IO Flow
06-03 File class
06-03-01 Recursion
06-04 Properties Collection
06-05 Other IO Classes
06-05-01 Print Stream
06-05-02 Sequence Strea ...
Posted by dough boy on Sun, 23 Dec 2018 13:33:06 -0800
Java 7 NIO Files, Path operation file
From Java 1.0 to 1.3, we face the following problems when developing applications that require I/O support:
Without the concept of data buffers or channels, developers have to program to deal with many of the underlying details.
I/O operations are blocked and scalability is limited
The supported character set encoding is limited and requires a ...
Posted by kaedus on Sun, 23 Dec 2018 03:54:05 -0800
Usage of Linux Network Detection Tools (ping/netstat/ss/ethtool)
When the new Linux host completes the network configuration, that is, it can access the network normally, we can carry out network correlation detection through the relevant tools of Linux. For example, the most commonly used ping, netstat, ss, traceroute, ethtool and other related commands. This paper mainly describes the use of these command ...
Posted by deepakagrawal1982 on Sat, 22 Dec 2018 08:27:06 -0800
Solution to connect Mysql prompt Can't connect to local MySQL server through socket
mysql, mysqldump, mysqldump, php connection mysql service often prompts the following error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
There are generally two reasons for this problem:
1. The mysql service is not functioning properly:
Since mysql's socket file is created when m ...
Posted by chrille112 on Tue, 18 Dec 2018 01:30:04 -0800
Single page WEB application (7), Socket.IO of WebServer Node.js
I learned the Express framework before, and I got a general idea about it. Based on node.js server, I built a simple one. I finished all kinds of middleware use and routing functions. Then I got to communicate with you, including monitoring the changes of files or data, and monitoring and processing of events. Then I used Socket.io. I just tou ...
Posted by Caesar on Mon, 17 Dec 2018 15:03:04 -0800
okhttp implements https access and supports https access in Android 4.X system
Last year, we used Retrofit+OkHttp to make network requests when we reconstructed our company's project. Because our company's network requests are accessed by https, we began to solve the problem of Https network transmission after encapsulating the framework of Retrofit+OkHttp network requests suitable for our project. At first, I read a lot ...
Posted by michelledebeer on Mon, 17 Dec 2018 10:51:03 -0800
Java Network IO Programming (BIO, NIO, AIO)
This concept
BIO programming
Traditional BIO programming
Code example:
public class Server {
final static int PROT = 8765;
public static void main(String[] args) {
ServerSocket server = null;
try {
server = new ServerSocket(PROT);
System.out.println(" server start .. ");
// Blockin ...
Posted by ziola on Sat, 15 Dec 2018 21:09:05 -0800
On mac, import csv files into MySQL, ERROR 1290 (HY000), ERROR 13 (HY000)
Installation of mysql and Workbench on mac is very fast, mainly because it tramples a lot of holes when importing csv data.
mysql start
Click MySql in system preferences to enter the interface to start mysql. Enter mysql-u root-p in terminal and enter password to login mysql.
Before importing data, please ensure that the imp ...
Posted by Anarking on Mon, 10 Dec 2018 07:21:04 -0800