Java
Serialization in Java
Serialization turns an object graph into bytes and back. It is easy to switch on, hard to maintain, and a genuine security risk.
Files, streams, readers and writers.
4 notes tagged
Serialization turns an object graph into bytes and back. It is easy to switch on, hard to maintain, and a genuine security risk.
Every unbuffered read is a system call. Buffering turns thousands of them into a handful, and it is the single largest I/O win available.
InputStream and OutputStream carry raw bytes; Reader and Writer carry characters. Choosing wrongly corrupts data.
Path names a location and Files performs the operations. Together they replaced the older File class for almost every purpose.