For those of you looking to download code documents, many of the codes are available for free download here:
http://bulk.resource.org/codes.gov/
Most are one or more revisions out of date, but still quite useful since not much changes in a new release.
You will note many of the codes incorporate copyrighted documents, frequently some ICC or NFPA code. Take a look at an associated site:
https://public.resource.org/index.html
for a discussion about the legality of this resource. Basically when your state or city government makes a law that incorporates a copyrighted document as part of the that law, that specific law and referenced document becomes a public document, not subject to copyright.
You will find the same ICC code in many states laws. Some are simply image scans of the code book. More desirable are the true pdf file ones because they are searchable with a pdf reader. I can tell you the Maryland codes are searchable.