Uses of Interface
org.eclipse.jetty.io.Content.Source
Packages that use Content.Source
Package
Description
Jetty IO : Core classes for Jetty IO subsystem
-
Uses of Content.Source in org.eclipse.jetty.io
Methods in org.eclipse.jetty.io with parameters of type Content.SourceModifier and TypeMethodDescriptionstatic ByteBufferContent.Source.asByteBuffer(Content.Source source) Reads, blocking if necessary, the whole content source into aByteBuffer.static voidContent.Source.asByteBuffer(Content.Source source, org.eclipse.jetty.util.Promise<ByteBuffer> promise) Reads, non-blocking, the whole content source into aByteBuffer.static InputStreamContent.Source.asInputStream(Content.Source source) Wraps the given content source with anInputStream.static Flow.Publisher<Content.Chunk>Content.Source.asPublisher(Content.Source source) Wraps the given content source with aFlow.Publisher.static StringContent.Source.asString(Content.Source source) Reads, blocking if necessary, the whole content source into aString, converting the bytes using UTF-8.static StringContent.Source.asString(Content.Source source, Charset charset) static voidContent.Source.asString(Content.Source source, Charset charset, org.eclipse.jetty.util.Promise<String> promise) static voidContent.Source.consumeAll(Content.Source source) Reads, blocking if necessary, the given content source, until afailureor EOF, and discards the content.static voidContent.Source.consumeAll(Content.Source source, org.eclipse.jetty.util.Callback callback) Reads, non-blocking, the given content source, until afailureor EOF and discards the content.static voidContent.copy(Content.Source source, Content.Sink sink, Content.Chunk.Processor chunkProcessor, org.eclipse.jetty.util.Callback callback) Copies the given content source to the given content sink, notifying the given callback when the copy is complete.static voidContent.copy(Content.Source source, Content.Sink sink, org.eclipse.jetty.util.Callback callback) Copies the given content source to the given content sink, notifying the given callback when the copy is complete (either succeeded or failed). -
Uses of Content.Source in org.eclipse.jetty.io.content
Classes in org.eclipse.jetty.io.content that implement Content.SourceModifier and TypeClassDescriptionclassAContent.Sourcethat is also aContent.Sink.classAContent.Sourcebacked by one or moreByteBuffers.classAContent.Sourcebacked by one or moreContent.Chunks.classThis abstractContent.Sourcewraps anotherContent.Sourceand implementers need only to implement theContentSourceTransformer.transform(Content.Chunk)method, which is used to transformContent.Chunkread from the wrapped source.classAContent.Sourcethat is backed by anInputStream.classAContent.Sourcebacked by anOutputStream.classAContent.Sourcethat provides the file content of the passedPath.Constructors in org.eclipse.jetty.io.content with parameters of type Content.SourceModifierConstructorDescriptionContentSourceInputStream(Content.Source content) ContentSourcePublisher(Content.Source content) protectedContentSourceTransformer(Content.Source rawSource) protectedContentSourceTransformer(Content.Source rawSource, org.eclipse.jetty.util.thread.SerializedInvoker invoker)