Package org.glassfish.grizzly.spdy
Class Source.SourceFactory
java.lang.Object
org.glassfish.grizzly.spdy.Source.SourceFactory
- Enclosing class:
- Source
-
Method Summary
Modifier and TypeMethodDescriptioncreateBufferSource(org.glassfish.grizzly.Buffer buffer) CreateSourcebased onBuffer.createByteArraySource(byte[] array) CreateSourcebased on byte array.createByteArraySource(byte[] array, int offs, int len) CreateSourcebased on byte array.createFileSource(File file) createFileSource(String filename) CreateSourcebased on file.createStringSource(String string) createStringSource(String string, Charset charset)
-
Method Details
-
createByteArraySource
CreateSourcebased on byte array.- Parameters:
array- byte[] to be written.- Returns:
Source.
-
createByteArraySource
CreateSourcebased on byte array.- Parameters:
array- byte[] to be written.offs- the source offset in the byte array.len- the source length.- Returns:
Source.
-
createBufferSource
CreateSourcebased onBuffer.- Parameters:
buffer-Bufferto be written.- Returns:
Source.
-
createFileSource
CreateSourcebased on file.- Parameters:
filename- the filename.- Returns:
Source.- Throws:
FileNotFoundExceptionIOException
-
createFileSource
- Parameters:
file- theFile.- Returns:
Source.- Throws:
FileNotFoundExceptionIOException
-
createStringSource
-
createStringSource
-