fiftyone.mobile.detection.factories
Class StreamFactory
java.lang.Object
fiftyone.mobile.detection.factories.StreamFactory
public final class StreamFactory
- extends Object
Factory class used to create a DetectorDataSet from a source data structure.
All the entities are held in the persistent store and only loads into memory
when required. A cache mechanism is used to improve efficiency as many
entities are frequently used in a high volume environment.
The data set
will be initialised very quickly as only the header information is read.
Entities are then created when requested by the detection process and stored
in a cache to avoid being recreated if their requested again after a short
period of time.
The very small data structures RootNodes, Properties and
Components are always /stored in memory as there is no benefit retrieving
them every time they're needed.
For more information see
http://51degrees.mobi/Support/Documentation/Java
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamFactory
public StreamFactory()
create
public static Dataset create(byte[] data)
throws IOException
- Throws:
IOException
create
public static Dataset create(String filename)
throws IOException
- Throws:
IOException
read
static Dataset read(BinaryReader reader,
Source source)
throws IOException
- Throws:
IOException