public abstract class EntityCollectionSupport extends EntitySupport implements EntityCollection
Constructor and Description |
---|
EntityCollectionSupport() |
Modifier and Type | Method and Description |
---|---|
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.
|
fill, getValue
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren
public EntityCollectionSupport()
public final int length()
public final void readFrom(InputStream is) throws IOException
readFrom
in interface Entity
is
- to readIOException
- on errorpublic final void writeTo(OutputStream os) throws IOException
writeTo
in interface Entity
os
- to write toIOException
- on errorpublic final byte[] getValue()
public final void setValue(byte[] b)
public final void setValue(byte[] b, int offset, int length)
setValue
in interface Entity
setValue
in class EntitySupport
b
- 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 Entity
clone
in class EntitySupport
protected boolean shouldSuppress(Entity child)
child
- to checkCopyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.