*** This class provides Binary Compatibility only, not Source Compatibility ***
Class GenericStream
java.lang.Object
com.sas.services.storedprocess.metadata.DataSourceOrTarget
com.sas.services.storedprocess.metadata.GenericStream
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
XMLStream
@SASScope("ALL")
@BinaryCompatibilityOnly
public class GenericStream
extends DataSourceOrTarget
implements Serializable
Describes a design time GenericStream data source or target object.
- Since:
- 9.2
- See Also:
-
Field Summary
Fields inherited from class com.sas.services.storedprocess.metadata.DataSourceOrTarget
_cultureElement, _descElement, _element, _labelElement -
Constructor Summary
ConstructorsConstructorDescriptionConstructs and empty Generic Stream Data Source or Data Target object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDescribes whether the stream should allows rewinds.StringReturns the expected content type.StringReturns the SAS fileref name.voidsetAllowRewinds(boolean allowRewinds) Sets whether rewinding is supported.voidsetExpectedContentType(String expectedContentType) Sets the expected content type.voidsetFileref(String fileref) Sets the SAS fileref name.voidvalidate()Validates the GenericStream.Methods inherited from class com.sas.services.storedprocess.metadata.DataSourceOrTarget
getDescription, getLabel, isSource, setDescription, setLabel, setSourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GenericStream
public GenericStream()Constructs and empty Generic Stream Data Source or Data Target object. By default a data source is returned and the expected content type set to "application/unknown"; a data Target can be constructed by callingDataSourceOrTarget.setSource(boolean). Rewinding is only supported for data sources and can be specified via thesetAllowRewinds(boolean)method.
-
-
Method Details
-
getFileref
public String getFileref()Returns the SAS fileref name.- Returns:
- the SAS fileref name
-
getExpectedContentType
public String getExpectedContentType()Returns the expected content type.- Returns:
- the expected content type
-
allowsRewinds
public boolean allowsRewinds() throws IllegalStateExceptionDescribes whether the stream should allows rewinds. If true, it does; if false, it does not. This setting is only valid for data sources.- Returns:
- whether the stream allows rewinds
- Throws:
IllegalStateException- if called on a data target
-
setFileref
public void setFileref(String fileref) Sets the SAS fileref name. -
setExpectedContentType
public void setExpectedContentType(String expectedContentType) Sets the expected content type. -
setAllowRewinds
public void setAllowRewinds(boolean allowRewinds) Sets whether rewinding is supported. This setting is only valid for data sources. -
validate
Validates the GenericStream. There is no requirement for consumer code to call this method. The fileref is validated. The fileref should be non-empty and satisfy the requirements ofNames.validateSASFilerefName().- Specified by:
validatein classDataSourceOrTarget- Throws:
ServiceException- if validation fails
-