|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITerrainBlobWriter
Provides access to members that construct an attribute blob.
ITerrainBlobWriter provides methods for creating BLOBs that can be interpreted/read by the TerrainBlobReader.
Method Summary | |
---|---|
void |
addValue(Object value)
Adds an attribute value to the blob. |
void |
beginAddingValue(int type)
Initialize a new blob with the specified data type. |
IMemoryBlobStream |
endAddingValue()
Completes writing the blob and returns a reference to the blob object. |
int |
getItemCount()
Returns the number of attribute values contained in the blob. |
Method Detail |
---|
void beginAddingValue(int type) throws IOException, AutomationException
BeginAddingValue is used to initialize a new BLOB to one of the supported numeric types (see esriTerrainBlobDataType). All values in an individual TerrainBlob are the same type; homogeneous.
After calling BeginAddingValue you use ITerrainBlobWriter.AddValue to populate the BLOB.
type
- A com.esri.arcgis.geodatabaseextensions.esriTerrainBlobDataType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addValue(Object value) throws IOException, AutomationException
Ideally, the variable type used for assignment should match the BLOB type (see ITerrainBlobWriter.BeginAddingValue) to ensure the value is properly maintained. Since this is not always possible (e.g., VB does not support 'char'), for flexibility the value is cast so you are not forced to use the same types. If the types don't match the value may get mangled if it's outide the BLOB type's range.
value
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getItemCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMemoryBlobStream endAddingValue() throws IOException, AutomationException
EndAddingValue indicates there are no more values to be added. This completes and returns a TerrainBlob object. It can be interpreted by the TerrainBlobReader.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |