public class ByteArrayRepresentation
extends org.restlet.resource.StreamRepresentation
Copyright (c) 2008
Boomi, Inc.
| Constructor and Description |
|---|
ByteArrayRepresentation(byte[] bytes,
org.restlet.data.MediaType mediaType) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
InputStream |
getStream() |
String |
getText() |
void |
setBytes(byte[] newBytes) |
void |
write(OutputStream outputStream) |
void |
write(WritableByteChannel writableChannel) |
isAvailable, isTransient, setAvailable, setTransientgetCharacterSet, getEncodings, getExpirationDate, getIdentifier, getLanguages, getMediaType, getModificationDate, getSize, getTag, setCharacterSet, setExpirationDate, setIdentifier, setIdentifier, setMediaType, setModificationDate, setSize, setTagpublic ByteArrayRepresentation(byte[] bytes,
org.restlet.data.MediaType mediaType)
public byte[] getBytes()
public void setBytes(byte[] newBytes)
public InputStream getStream() throws IOException
getStream in class org.restlet.resource.RepresentationIOExceptionpublic String getText() throws IOException
getText in class org.restlet.resource.RepresentationIOExceptionpublic void write(OutputStream outputStream) throws IOException
write in class org.restlet.resource.RepresentationIOExceptionpublic void write(WritableByteChannel writableChannel) throws IOException
write in class org.restlet.resource.StreamRepresentationIOException