Package de.intarsys.tools.result
Class ByteBasedResult
- java.lang.Object
-
- de.intarsys.tools.result.CommonResult
-
- de.intarsys.tools.result.StreamResult
-
- de.intarsys.tools.result.ByteBasedResult
-
- All Implemented Interfaces:
ILocatorSupport
,IMimeTypeSupport
,IResult
,IStreamResult
public class ByteBasedResult extends StreamResult
-
-
Constructor Summary
Constructors Constructor Description ByteBasedResult(java.lang.String contentType, byte[] bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
ILocator
getLocator()
Return theILocator
that defines the physical resource location for the reciver.java.lang.String
toString()
-
Methods inherited from class de.intarsys.tools.result.StreamResult
getName, getType, setName, setType
-
Methods inherited from class de.intarsys.tools.result.CommonResult
getContentType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.intarsys.tools.mime.IMimeTypeSupport
getContentType
-
-
-
-
Method Detail
-
getBytes
public byte[] getBytes()
-
getLocator
public ILocator getLocator()
Description copied from interface:ILocatorSupport
Return theILocator
that defines the physical resource location for the reciver.- Returns:
- Return the
ILocator
that defines the physical resource location for the reciver.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-