Package overit.geocall.servlet.gate
Class ByteArraySource
java.lang.Object
overit.geocall.servlet.gate.ByteArraySource
- All Implemented Interfaces:
Serializable,Source
Class that aims to manage a in memory
[] as a
invalid reference
byte
Source.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionByteArraySource(byte[] content) ByteArraySource(byte[] content, overit.geocall.servlet.MimeType mt) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the Source is compressible,falseotherwiseReturns the content typeReturns the entity taglongReturns the content lengthvoidoutput(OutputStream os) Write in the OutputStream
-
Constructor Details
-
ByteArraySource
- Throws:
IOException
-
ByteArraySource
- Throws:
IOException
-
-
Method Details
-
getCompressible
public boolean getCompressible()Description copied from interface:SourceReturnstrueif the Source is compressible,falseotherwise- Specified by:
getCompressiblein interfaceSource- Returns:
trueif the Source is compressible,falseotherwise
-
getEntityTag
Description copied from interface:SourceReturns the entity tag- Specified by:
getEntityTagin interfaceSource- Returns:
- The entity tag
-
getContentType
Description copied from interface:SourceReturns the content type- Specified by:
getContentTypein interfaceSource- Returns:
- The content type
-
getLength
public long getLength()Description copied from interface:SourceReturns the content length -
output
Description copied from interface:SourceWrite in the OutputStream- Specified by:
outputin interfaceSource- Parameters:
os- The OutputStream- Throws:
IOException- if an I/O error occurs
-