yaz4j is a toolkit for Java which includes a wrapper for the ZOOMAPI of YAZ. This allows developers to write Z39.50/SRU clients in Java. yaz4j supports both search and scan. See the javadoc for details.
yaz4j was initially implemented by Talis and is now maintained and developed by Index Data.