public class StreamSourceInfo extends Object
| Constructor and Description |
|---|
StreamSourceInfo(InputStream stream) |
StreamSourceInfo(InputStream stream,
boolean leaveOpen) |
StreamSourceInfo(InputStream stream,
boolean leaveOpen,
UUID sourceId) |
StreamSourceInfo(InputStream stream,
boolean leaveOpen,
UUID sourceId,
CompressionType compressionType) |
| Modifier and Type | Method and Description |
|---|---|
CompressionType |
getCompressionType() |
UUID |
getSourceId() |
InputStream |
getStream() |
Map<String,String> |
getTracingAttributes() |
boolean |
isLeaveOpen() |
void |
setCompressionType(CompressionType compressionType) |
void |
setLeaveOpen(boolean leaveOpen)
Weather or not the stream will close after reading from it.
|
void |
setSourceId(UUID sourceId) |
void |
setStream(InputStream stream) |
String |
toString() |
void |
validate()
Checks that this SourceInfo is defined appropriately.
|
public StreamSourceInfo(InputStream stream)
public StreamSourceInfo(InputStream stream, boolean leaveOpen)
public StreamSourceInfo(InputStream stream, boolean leaveOpen, UUID sourceId)
public StreamSourceInfo(InputStream stream, boolean leaveOpen, UUID sourceId, CompressionType compressionType)
public InputStream getStream()
public void setStream(InputStream stream)
public boolean isLeaveOpen()
public void setLeaveOpen(boolean leaveOpen)
leaveOpen - leave the stream open after processingpublic void setCompressionType(CompressionType compressionType)
public CompressionType getCompressionType()
public void validate()
SourceInfopublic Map<String,String> getTracingAttributes()
getTracingAttributes in interface TraceableAttributespublic UUID getSourceId()
getSourceId in interface SourceInfopublic void setSourceId(UUID sourceId)
setSourceId in interface SourceInfoCopyright © 2024. All rights reserved.