public abstract class

AbsSerializeDAO

extends Object
java.lang.Object
   ↳ com.htc.painting.engine.AbsSerializeDAO

Class Overview

This class defines the functions that will be used for HtcPaintingView. HtcPaintingView will call on these functions when saving/loading the Stroke data.

Summary

Public Constructors
AbsSerializeDAO()
Public Methods
abstract void delete(int groupId)
abstract void deleteAll()
This function is called when all StrokeGroups for this document should be deleted.
abstract byte[] load(int groupId)
This function is used to load StrokeGroup data.
abstract void save(int groupId, byte[] byteArray)
This function is used to save StrokeGroup data.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AbsSerializeDAO ()

Since: API Level 2.0

Public Methods

public abstract void delete (int groupId)

Since: API Level 2.0

Parameters
groupId which stroke group

public abstract void deleteAll ()

Since: API Level 2.0

This function is called when all StrokeGroups for this document should be deleted.

public abstract byte[] load (int groupId)

Since: API Level 2.0

This function is used to load StrokeGroup data. The implementation of this function should deserialize previous stored StrokeGroup data and return it.

Parameters
groupId which stroke group
Returns
  • byte array of serialized data. returns null if it is not already saved.

public abstract void save (int groupId, byte[] byteArray)

Since: API Level 2.0

This function is used to save StrokeGroup data. The implementation of this function should serialize the input byteArray and save them to the application's preference.

Parameters
groupId which stroke group
byteArray byte array of serialized data