|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCADI.Server.LogicalTarget.ServerLogicalTarget
public abstract class ServerLogicalTarget
This class defines basic attributes and functions the new compression systems will have to inherit and implement.
| Field Summary | |
|---|---|
protected BufferedDataInputStream |
in
Is the input stream used to read the file. |
protected int |
logicalTargetType
Identifies the type of the logical target. |
protected java.lang.String |
target
Definition in TargetField.target. |
protected java.lang.String |
tid
Definition in TargetField.tid. |
protected int |
TID_DEFAULT_LENGTH
Default length of the tid. |
| Constructor Summary | |
|---|---|
ServerLogicalTarget()
|
|
| Method Summary | |
|---|---|
protected void |
generateTid()
It will generate a Target-ID for that logical target, i.e. a string that absolutely identifies the logical target. |
protected void |
generateTid(int length)
This method is used to generate a target identifier for the this logical target, i.e. a string that absolutely identifies the logical target. |
BufferedDataInputStream |
getInputDataSource()
Returns the in attribute. |
int |
getLogicalTargetType()
Gets the logical target type which it belongs. |
java.lang.String |
getTarget()
Returns the target attribute. |
java.lang.String |
getTID()
Returns the tid attribute. |
void |
list(java.io.PrintStream out)
Prints this Server Logical Target fields out to the specified output stream. |
void |
setInputDataSource(BufferedDataInputStream in)
Sets the in attribute. |
void |
setLogicalTargetType(int logicalTargetType)
Sets the logical target type which it belongs. |
void |
setTarget(java.lang.String target)
Sets the target attribute |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String tid
TargetField.tid.
protected BufferedDataInputStream in
protected int logicalTargetType
Allowed values: see LogicalTargetTypes
protected java.lang.String target
TargetField.target.
protected final int TID_DEFAULT_LENGTH
tid.
| Constructor Detail |
|---|
public ServerLogicalTarget()
| Method Detail |
|---|
protected void generateTid()
This a generic function, but it is recommended classes that inherits from this one should implement their own methods.
NOTICE: This method must be called from the constructor of the class.
tidprotected void generateTid(int length)
This a generic function, but classes that inherits from this one can implement their own methods.
NOTICE: This method must be called from the constructor of the class.
length - the length of the identifier.tidpublic final void setInputDataSource(BufferedDataInputStream in)
in attribute.
in - the input stream where data will be read.public final BufferedDataInputStream getInputDataSource()
in attribute.
in attribute.public final void setLogicalTargetType(int logicalTargetType)
logicalTargetType - The type of the logical target.public final int getLogicalTargetType()
public final void setTarget(java.lang.String target)
target attribute
target - the value of the attribute.public final java.lang.String getTarget()
target attribute.
target attribute.public final java.lang.String getTID()
tid attribute.
tid attribute.public java.lang.String toString()
toString in class java.lang.Objectpublic void list(java.io.PrintStream out)
out - an output stream.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||