During the reading of Code Complete 2e I've come across the grep example. This utility helps you to find files matching your search criteria.
If you have a javadoc and you want to find out what's new then you can use the following example:
duglas@duglas-ThinkStation /usr/share/doc/openjdk-7-doc/api $ grep -R -l --include="*.html" "<dd>1.7</dd>" . > /home/duglas/j.txt
This command will find all files that have been changed or added to the JDK 1.7. Moreover it allows you not only to rely on the what's new file but to explore the changes to the JDK documentation by yourself.
This blog is a collection of minds around linux, java, javascript, etc. Looking for great opportunities.
Показаны сообщения с ярлыком java 7. Показать все сообщения
Показаны сообщения с ярлыком java 7. Показать все сообщения
суббота, 26 октября 2013 г.
пятница, 3 мая 2013 г.
Java 7 Concurrency Cookbook
Have read Java 7 Concurrency Cookbook.
A very good book about concurrency in Java.
Every feature is accompanied with an example.
Most important thing is that examples are clear and resemble some real problems.
When working with an examples one should be very careful, because of the typos in the text. So it's better to consult errata on the publisher's site.
Also you can get 2 free chapters and source code on the publisher's site.
A very good book about concurrency in Java.
Every feature is accompanied with an example.
Most important thing is that examples are clear and resemble some real problems.
When working with an examples one should be very careful, because of the typos in the text. So it's better to consult errata on the publisher's site.
Also you can get 2 free chapters and source code on the publisher's site.
суббота, 8 сентября 2012 г.
Кодировки и класс Charset
Иногда приходится работать с кодировками, в частности, преобразовывать бинарные данные в строковые. Для этого можно использовать класс Charset.
Можно было подумать, что в JVM есть удобные константы для кодировки UTF-8, но вместо этого предлагается использовать Charset.forName(). Плохо, что этот метод выкидывает 3 исключения. В java версии 7 нам дают в распоряжение новый класс StandardCharsets. Данный класс предлагает ряд кодировок, которые ГАРАНТИРОВАННО поддерживаются на каждой реализации JVM. Данный класс имеет static Charset UTF_8.
В принципе никто не мешает написать такой класс самому.
Расстраивает одно, почему такой вспомогательный класс появился только в 7 версии машины?
В принципе никто не мешает написать такой класс самому.
Расстраивает одно, почему такой вспомогательный класс появился только в 7 версии машины?
Подписаться на:
Комментарии (Atom)