Package gov.usgs.earthquake.product.io
Classes that perform input and output for Products.
The two primary interfaces are ProductSource and ProductHandler.
A ProductSource generates product events.
A ProductHandler handles product events.
The idea behind these interfaces is to process products using streams,
to minimize the memory footprint and to allow creation and processing
of products with contents that cannot fit within a virtual machine.
There are four main ProductSource/ProductHandler pairs:
- Object
-
Java Object => ObjectProductSource => events
events => ObjectProductHandler => Java Object
- Directory
-
product directory => DirectoryProductSource => events
events => DirectoryProductHandler => product directory - Xml
-
product xml => XmlProductSource => events
events => XmlProductHandler => product xml
- Zip
-
product zip => ZipProductSource => events
events => ZipProductHandler => product zip
-
Interface Summary Interface Description ProductHandler A Handler for Product events.ProductSource A Source of Product events. -
Class Summary Class Description BinaryIO BinaryProductHandler Generator of binary format for product data.BinaryProductSource Parser for binary format for product data.BinaryXmlIOComparison Compare io times of XML and Binary product formats.ContentOutputThread Deliver content in a separate thread.DirectoryProductHandler Store a product to a Directory.DirectoryProductSource Load a product from a Directory.FilterProductHandler Filter calls to another ProductHandler.IOUtil Class with main method for converting from one product format to another.JsonProduct JsonProductHandler Store a product as Json.JsonProductSource Load a product from an InputStream containing Json.ObjectProductHandler Convert ProductSource events into a java Product object.ObjectProductSource Convert a java Product object into events for a ProductHandler.XmlProductHandler Store a product to an OutputStream using XML.XmlProductSource Load a product from an InputStream containing XML.ZipProductHandler Store a product to an OutputStream using ZIP.ZipProductSource Load a product from an InputStream containing ZIP.