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, setTransient
getCharacterSet, getEncodings, getExpirationDate, getIdentifier, getLanguages, getMediaType, getModificationDate, getSize, getTag, setCharacterSet, setExpirationDate, setIdentifier, setIdentifier, setMediaType, setModificationDate, setSize, setTag
public 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.Representation
IOException
public String getText() throws IOException
getText
in class org.restlet.resource.Representation
IOException
public void write(OutputStream outputStream) throws IOException
write
in class org.restlet.resource.Representation
IOException
public void write(WritableByteChannel writableChannel) throws IOException
write
in class org.restlet.resource.StreamRepresentation
IOException