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 that return Content.SourceModifier and TypeMethodDescriptionstatic Content.SourceIOResources.asContentSource(org.eclipse.jetty.util.resource.Resource resource, ByteBufferPool bufferPool, int bufferSize, boolean direct) Gets aContent.Sourcewith the contents of a resource.static Content.SourceIOResources.asContentSource(org.eclipse.jetty.util.resource.Resource resource, ByteBufferPool bufferPool, int bufferSize, boolean direct, long first, long length) Gets aContent.Sourcewith a range of the contents of a resource.static Content.SourceContent.Source.from(InputStream inputStream) static Content.SourceContent.Source.from(ByteBuffer... byteBuffers) Create aContent.Sourcefrom zero or moreByteBuffersstatic Content.SourceCreate aContent.Sourcefrom aPath.static Content.SourceCreate aContent.Sourcefrom aPath.static Content.SourceContent.Source.from(ByteBufferPool.Sized byteBufferPool, InputStream inputStream) Create aContent.Sourcefrom aPath.static Content.SourceContent.Source.from(ByteBufferPool.Sized byteBufferPool, InputStream inputStream, long offset, long length) Create aContent.Sourcefrom aPath.static Content.SourceContent.Source.from(ByteBufferPool.Sized byteBufferPool, ByteChannel byteChannel) Create aContent.Sourcefrom aByteChannel.static Content.SourceContent.Source.from(ByteBufferPool.Sized byteBufferPool, SeekableByteChannel seekableByteChannel, long offset, long length) Create aContent.Sourcefrom aByteChannel.static Content.SourceContent.Source.from(ByteBufferPool.Sized byteBufferPool, Path path) Create aContent.Sourcefrom aPath.static Content.SourceContent.Source.from(ByteBufferPool.Sized byteBufferPool, Path path, long offset, long length) Create aContent.Sourcefrom aPath.Content.Source.Factory.newContentSource(ByteBufferPool.Sized bufferPool, long first, long length) Creates a newContent.Source.Methods in org.eclipse.jetty.io with parameters of type Content.SourceModifier and TypeMethodDescriptionstatic CompletableFuture<byte[]> Content.Source.asByteArrayAsync(Content.Source source, int maxSize) Deprecated, for removal: This API element is subject to removal in a future version.no replacementstatic 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 CompletableFuture<ByteBuffer> Content.Source.asByteBufferAsync(Content.Source source) Deprecated, for removal: This API element is subject to removal in a future version.useasByteBuffer(Source, Promise)insteadstatic CompletableFuture<ByteBuffer> Content.Source.asByteBufferAsync(Content.Source source, int maxSize) Deprecated, for removal: This API element is subject to removal in a future version.no replacementstatic 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.Content.Source.asRetainableByteBuffer(Content.Source source, ByteBufferPool pool, boolean direct, int maxSize) Deprecated, for removal: This API element is subject to removal in a future version.no replacementstatic 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 CompletableFuture<String> Content.Source.asStringAsync(Content.Source source, Charset charset) Deprecated, for removal: This API element is subject to removal in a future version.useasString(Source, Charset, Promise)insteadstatic 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).CompletableFuture<byte[]> ChunkAccumulator.readAll(Content.Source source) Deprecated, for removal: This API element is subject to removal in a future version.CompletableFuture<byte[]> ChunkAccumulator.readAll(Content.Source source, int maxSize) Deprecated, for removal: This API element is subject to removal in a future version.ChunkAccumulator.readAll(Content.Source source, ByteBufferPool pool, boolean direct, int maxSize) Deprecated, for removal: This API element is subject to removal in a future version. -
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.Sourcethat provides content asynchronously through anOutputStream.classAContent.Sourcethat provides the file content of the passedPath.Methods in org.eclipse.jetty.io.content that return Content.SourceModifier and TypeMethodDescriptionprotected Content.SourceContentSourceTransformer.getContentSource()Constructors in org.eclipse.jetty.io.content with parameters of type Content.SourceModifierConstructorDescriptionContentSourceCompletableFuture(Content.Source content, org.eclipse.jetty.util.thread.Invocable.InvocationType invocationType) ContentSourceInputStream(Content.Source content) ContentSourcePublisher(Content.Source content) protectedContentSourceTransformer(Content.Source rawSource) protectedContentSourceTransformer(Content.Source rawSource, org.eclipse.jetty.util.thread.SerializedInvoker invoker)