public class Vector_Shape extends Object implements Serializable
Much faster because not synchronized and no cast Does not double in size each time
| Modifier and Type | Field and Description |
|---|---|
protected int |
current_item |
| Constructor and Description |
|---|
Vector_Shape() |
Vector_Shape(int number) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(Area value)
add an item
|
void |
clear()
clear the array
|
Area[] |
get()
extract underlying data
|
protected static int |
incrementSize(int increment_size) |
void |
resetToCheckpoint()
used to store end of PDF components
|
void |
restoreFromStream(ByteArrayInputStream bis)
restore the shapes from the input stream into this collections
|
void |
setCheckpoint()
used to rollback array to point
|
void |
trim() |
void |
writeToStream(ByteArrayOutputStream bos)
writes out the shapes in this collection to the ByteArrayOutputStream
|
public void resetToCheckpoint()
public void setCheckpoint()
protected static int incrementSize(int increment_size)
public final Area[] get()
public final void clear()
public final void addElement(Area value)
public void writeToStream(ByteArrayOutputStream bos) throws IOException
NOT PART OF API and subject to change (DO NOT USE)
bos - - the ByteArrayOutputStream to write out toIOExceptionpublic void restoreFromStream(ByteArrayInputStream bis) throws IOException, ClassNotFoundException
NOT PART OF API and subject to change (DO NOT USE)
bis - - ByteArrayInputStream to read fromIOExceptionClassNotFoundExceptionpublic void trim()
Copyright © 2017. All rights reserved.