|
|
libcats.org
Java I/OElliotte Rusty HaroldBecause it doesn't provide a printf() function like C/C++, some developers think Java isn't up to snuff with files and streams. Author Rusty Harold Elliotte argues against this notion in Java I/O, a book that shows how Java's stream support can help simplify network programming, internationalization, and even compression and encryption.The book opens with an overview of Java's stream capabilities. (The author defends Java's lack of support for console input/output (I/O) since today's applications use graphical user interfaces anyway.) He shows how to open, read, and write local files in Java applications. His file viewer example presents data in a variety of formats. (This example is improved several times until it winds up supporting different international character sets by the end of the book.)Next the author covers network programming using URL and network streams, including sockets. Sections on filters show how classes can filter out characters within streams. The tour moves forward to cover data streams, which permit streaming of Java's primitive data types. Details on how to communicate within Java programs using pipes follow. In a notable chapter, the author thoroughly explicates Java's support for encryption, including hashing, the Data Encryption Standard (DES) algorithm, and ciphers.The last portion of the book explains object serialization, which allows Java objects to save and restore their state, plus it includes sections on Java's support for data compression (and ZIP files) and multilingual Unicode character sets. (Java is prepared to handle virtually any of the world's languages with its reader and writer classes.) Finally, the author shows how you can format output in Java using its support for width and numeric precision APIs.In all, Elliotte makes a good case that Java streams are a flexible and powerful part of the language, and certainly not a limitation.
Скачать книгу бесплатно (chm, 2.77 Mb)
EPUB | FB2 | PDF | MOBI | TXT | RTF
* Конвертация файла может нарушить форматирование оригинала. По-возможности скачивайте файл в оригинальном формате.
Популярные книги за неделю:
Проектирование и строительство. Дом, квартира, садАвтор: Петер Нойферт, Автор: Людвиг Нефф
Размер книги: 20.83 Mb
Система упражнений по развитию способностей человека (Практическое пособие)Автор: Петров Аркадий НаумовичКатегория: Путь к себе
Размер книги: 818 Kb
Сотворение мира (3-х томник)Автор: Петров Аркадий НаумовичКатегория: Путь к себе
Размер книги: 817 Kb
Радиолюбительские схемы на ИС типа 555Автор: Трейстер Р.Категория: Электротехника и связь
Размер книги: 13.64 Mb
Только что пользователи скачали эти книги:
Небо в алмазахАвтор: Биленкин Дмитрий АлександровичКатегория: Научная Фантастика
Размер книги: 15 Kb
Перекресток утопий (Судьбы фантастики на фоне судеб страны)Автор: Ревич ВсеволодКатегория: Научная Фантастика
Размер книги: 902 Kb
Всеволод Ревич. На земле и в космосе (Заметки о советской фантастике 1980 года)Автор:
Размер книги: 39 Kb
Progress in Robotics: FIRA RoboWorld Congress 2009, Incheon, Korea, August 16-20, 2009. Proceedings (Communications in Computer and Information Science)Автор: Jong-Hwan Kim, Автор: Shuzhi Sam Ge, Автор: Prahlad Vadakkepat, Автор: Norbert Jesse, Автор: Abdullah Al Mamun, Автор: Sadasivan Puthusserypady, Автор: Ulrich Rückert, Автор: Joaquin Sitte, Автор: Ulf Witkowski, Автор: Ryohei Nakatsu, Автор: Thomas Braunl, Автор: Jacky Baltes, Автор: John Anderson, Автор: Ching-Chang Wong, Автор: Igor Verner
Размер книги: 20.37 Mb
Exchange Rates And International Finance, 4th EditionАвтор: Laurence S. Copeland
Размер книги: 5.11 Mb
Instrumentation, 5th EditionАвтор: Franklyn W. Kirk, Автор: Thomas A. Weedon, Автор: Phillip Kirk
Размер книги: 49.19 Mb
|
|
|