|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.flatfile.EntitySupport
org.apache.commons.flatfile.EntityCollectionSupport
public abstract class EntityCollectionSupport
Implementation of common operations for an EntityCollection.
| Constructor Summary | |
|---|---|
EntityCollectionSupport()
|
|
| Method Summary | |
|---|---|
EntityCollectionSupport |
clone()
Clone oneself. |
byte[] |
getDelim()
Get the delimiter to use between children. |
byte[] |
getValue()
Get the value of this Entity. |
boolean |
isDelimAfter()
Learn whether a trailing delimiter will be added when a delimiter is being used. |
boolean |
isSuppressEmptyChildren()
Get the boolean suppressEmptyChildren. |
int |
length()
Get the length of this Entity. |
void |
readFrom(InputStream is)
Read value from an InputStream. |
void |
setDelim(byte[] delim)
Set the delimiter to use between children. |
void |
setDelimAfter(boolean delimAfter)
Set whether to add a trailing delimiter when a delimiter is being used. |
void |
setSuppressEmptyChildren(boolean suppressEmptyChildren)
Set the boolean suppressEmptyChildren. |
void |
setValue(byte[] b)
Set this Entity's value. |
void |
setValue(byte[] b,
int offset,
int length)
Set this Entity's value to a subset of the specified byte[]. |
protected boolean |
shouldSuppress(Entity child)
Learn whether the specified child should be suppressed. |
void |
writeTo(OutputStream os)
Write value to an OutputStream. |
| Methods inherited from class org.apache.commons.flatfile.EntitySupport |
|---|
fill, getValue |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.flatfile.EntityCollection |
|---|
getChildren |
| Methods inherited from interface org.apache.commons.flatfile.Entity |
|---|
fill, getValue |
| Constructor Detail |
|---|
public EntityCollectionSupport()
| Method Detail |
|---|
public final int length()
length in interface Entity
public final void readFrom(InputStream is)
throws IOException
readFrom in interface Entityis - to read
IOException - on error
public final void writeTo(OutputStream os)
throws IOException
writeTo in interface Entityos - to write to
IOException - on errorpublic final byte[] getValue()
getValue in interface Entitypublic final void setValue(byte[] b)
setValue in interface Entityb - byte[]
public final void setValue(byte[] b,
int offset,
int length)
setValue in interface EntitysetValue in class EntitySupportb - byte[]offset - intlength - intpublic boolean isDelimAfter()
public void setDelimAfter(boolean delimAfter)
true.
delimAfter - The boolean delimAfter to set.public byte[] getDelim()
public void setDelim(byte[] delim)
delim - The byte[] delimiter to set.public boolean isSuppressEmptyChildren()
public void setSuppressEmptyChildren(boolean suppressEmptyChildren)
suppressEmptyChildren - booleanpublic EntityCollectionSupport clone()
clone in interface Entityclone in class EntitySupportprotected boolean shouldSuppress(Entity child)
child - to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||