Class ServerUDTInputStream
- java.lang.Object
-
- de.aristaflow.adept2.model.common.communication.ServerInputStream
-
- de.aristaflow.adept2.model.datamanagement.ServerUDTInputStream
-
- All Implemented Interfaces:
ServerStream
public class ServerUDTInputStream extends ServerInputStream
This interface resembles aUDTValue
but does not provide all data at once but as requested, that is, the value of this UDTValue will not be provided as a whole but incrementally as requested. This significantly improves memory usage.- See Also:
UDTValue
-
-
Field Summary
Fields Modifier and Type Field Description protected String
userDefinedTypeName
The name of the user-defined type.
-
Constructor Summary
Constructors Constructor Description ServerUDTInputStream(UDTValue value)
Creates a newServerInputStream
for the designatedUDTValue
.ServerUDTInputStream(InputStream in, String userDefinedType)
Creates a new UDTValue asServerInputStream
that is all data will be transfered as requested.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getUserDefinedType()
Gets the name (a string) of the user-defined type of this value.-
Methods inherited from class de.aristaflow.adept2.model.common.communication.ServerInputStream
available, close, mark, markSupported, read, read, reset, skip
-
-
-
-
Field Detail
-
userDefinedTypeName
protected final String userDefinedTypeName
The name of the user-defined type.
-
-
Constructor Detail
-
ServerUDTInputStream
public ServerUDTInputStream(InputStream in, String userDefinedType)
Creates a new UDTValue asServerInputStream
that is all data will be transfered as requested.- Parameters:
in
- The input stream providing the value for this UDTValue.userDefinedType
- The name of the user-defined type of the value. the name of the user defined type
-
ServerUDTInputStream
public ServerUDTInputStream(UDTValue value)
Creates a newServerInputStream
for the designatedUDTValue
.- Parameters:
value
- TheUDTValue
providing the necessary information for theServerUDTInputStream
to create.
-
-
Method Detail
-
getUserDefinedType
public String getUserDefinedType()
Gets the name (a string) of the user-defined type of this value.- Returns:
- The name of the user-defined data type of this value.
-
-