public interface RequestOutput
Modifier and Type | Method and Description |
---|---|
void |
write(byte[] bytes)
Appends the bytes to the binary output content.
|
void |
write(byte[] bytes, int offset, int length)
Appends the bytes to the binary output content.
|
void |
write(char[] chars)
Appends the characters to the text output content.
|
void |
write(char[] chars, int offset, int length)
Appends the charactes to the text output content.
|
void |
write(String str)
Appends the String to the text output content.
|
void |
write(String str, int offset, int length)
Appends the String to the text output content.
|
void |
writeln(String str)
Appends the String to the text output content, followed by a line feed character.
|
void writeln(String str) throws NotFoundException, ValidationException, RuntimeServiceException
str
- text to append to this output content.NotFoundException
- If the content does not exist.ValidationException
- If the content type is binary or if the content was created from an import.RuntimeServiceException
- If error accessing runtime store.void write(String str) throws NotFoundException, ValidationException, RuntimeServiceException
str
- text to append to this output content.NotFoundException
- If the content does not exist.ValidationException
- If the content type is binary or if the file was imported.RuntimeServiceException
- If error accessing runtime store.void write(String str, int offset, int length) throws NotFoundException, ValidationException, RuntimeServiceException
str
- text to append to this output content.offset
- offset in the String to start writing from; 0 starts at the beginning.length
- number of characters to write.NotFoundException
- If the content does not exist.ValidationException
- If the content type is not Text; if the file was imported; if the content was created from an import; or if the offset and length are invalid.RuntimeServiceException
- If error accessing runtime store.void write(char[] chars) throws NotFoundException, ValidationException, RuntimeServiceException
chars
- characters to append to this output content.NotFoundException
- If the content does not exist.ValidationException
- If the content type is binary or if the file was imported.RuntimeServiceException
- If error accessing runtime store.void write(char[] chars, int offset, int length) throws NotFoundException, ValidationException, RuntimeServiceException
chars
- characters to append to this output content.offset
- offset in the array to start writing from; 0 starts at the beginning.length
- number of characters to write.NotFoundException
- If the content does not exist.ValidationException
- If the content type is not Text; if the file was imported; if the content was created from an import; or if the offset and length are invalid.RuntimeServiceException
- If error accessing runtime store.void write(byte[] bytes) throws NotFoundException, ValidationException, RuntimeServiceException
bytes
- bytes to append to this output content.NotFoundException
- If the content does not exist.ValidationException
- If the content type is text or if the content was created from an import.RuntimeServiceException
- If error accessing runtime store.void write(byte[] bytes, int offset, int length) throws NotFoundException, ValidationException, RuntimeServiceException
bytes
- bytes to append to this output content.offset
- offset in the bytes array to start writing from; 0 starts at the beginning.length
- number of bytes to write from the bytes array.NotFoundException
- If the content does not exist.ValidationException
- If the content type is text; if the content was created from an import; or if the offset and length are invalid.RuntimeServiceException
- If error accessing runtime store.