Class AIInOut.AIStreamInOut
- java.lang.Object
-
- net.stoerr.ai.aigenpipeline.framework.task.AIInOut.AIStreamInOut
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.stoerr.ai.aigenpipeline.framework.task.AIInOut
AIInOut.AIFileInOut, AIInOut.AIFileSegmentInOut, AIInOut.AIStreamInOut
-
-
Constructor Summary
Constructors Constructor Description AIStreamInOut(InputStream in)
Constructs an AIStreamInOut instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getFile()
The underlying file.String
read()
Reads the input stream and returns its content as a string.String
toString()
void
write(String content)
Writing to an input stream is not supported.
-
-
-
Constructor Detail
-
AIStreamInOut
public AIStreamInOut(InputStream in)
Constructs an AIStreamInOut instance.- Parameters:
in
- the input stream to read from
-
-
Method Detail
-
read
public String read() throws IllegalStateException
Reads the input stream and returns its content as a string.- Specified by:
read
in interfaceAIInOut
- Returns:
- the input stream content as a string
- Throws:
IllegalStateException
- if the input cannot be read
-
write
public void write(String content)
Writing to an input stream is not supported.
-
-