fiftyone.mobile.detection.factories
Class AsciiStringFactory

java.lang.Object
  extended by fiftyone.mobile.detection.factories.BaseEntityFactory<AsciiString>
      extended by fiftyone.mobile.detection.factories.AsciiStringFactory

public class AsciiStringFactory
extends BaseEntityFactory<AsciiString>


Constructor Summary
AsciiStringFactory()
           
 
Method Summary
 AsciiString create(Dataset dataSet, int offset, BinaryReader reader)
          Creates a new instance of AsciiString
 int getLength(AsciiString entity)
          Returns the length of the AsciiString entity including the 2 bytes for the length and the null terminator not used by java.
 
Methods inherited from class fiftyone.mobile.detection.factories.BaseEntityFactory
getLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsciiStringFactory

public AsciiStringFactory()
Method Detail

create

public AsciiString create(Dataset dataSet,
                          int offset,
                          BinaryReader reader)
Creates a new instance of AsciiString

Specified by:
create in class BaseEntityFactory<AsciiString>
Parameters:
dataSet - The data set whose strings list the string is contained within
offset - The offset to the start of the string within the string data structure
reader - Binary reader positioned at the start of the AsciiString
Returns:
A new instance of an AsciiString

getLength

public int getLength(AsciiString entity)
Returns the length of the AsciiString entity including the 2 bytes for the length and the null terminator not used by java.

Overrides:
getLength in class BaseEntityFactory<AsciiString>
Parameters:
entity - Entity of type AsciiString
Returns:
Length in bytes of the AsciiString