Reads the machine type field from a Windows .exe file. From this we can determine 32-bit vs 64-bit as well as a couple of other things.
This small Java class is a utility class for escaping strings so that they are safe to use in HTML.
There's a single static method, htmlEscape()
, which does the job.
I've found that all existing solutions (libraries) I've reviewed suffered from one or several of the below issues:
- They escape too much ... which makes the HTML much harder to read and takes longer time.
- They don't tell you in the Javadoc exactly what they replace.
- They do not document when the returned value is safe to use (safe to use for an HTML entity?, for an HTML attributute?, etc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ************************************************************************ | |
* watchdir.c | |
* | |
* watchdir uses Solaris' File Event Notification system to monitor | |
* a directory for changes. It is in this respect similar in use case | |
* to Linux's inotify-tools. | |
* | |
* This method of monitoring a directory is far superior to any | |
* alternative that would probably use looping and some sort of polling. | |
* |