Package org.eclipse.jetty.client.util
Class MultiPartContentProvider.MultiPartIterator
java.lang.Object
org.eclipse.jetty.client.util.MultiPartContentProvider.MultiPartIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<ByteBuffer>,Synchronizable,Callback,Invocable
- Enclosing class:
MultiPartContentProvider
private class MultiPartContentProvider.MultiPartIterator
extends Object
implements Iterator<ByteBuffer>, Synchronizable, Callback, Closeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.InvocableCallback, Callback.NestedNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Iterator<ByteBuffer> private MultiPartContentProvider.StateFields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationTypeMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Field Details
-
iterator
-
index
private int index -
state
-
-
Constructor Details
-
MultiPartIterator
private MultiPartIterator()
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<ByteBuffer>
-
next
- Specified by:
nextin interfaceIterator<ByteBuffer>
-
getLock
- Specified by:
getLockin interfaceSynchronizable- Returns:
- the lock object to synchronize on
-
succeeded
public void succeeded()Description copied from interface:CallbackCallback invoked when the operation completes.
-
failed
Description copied from interface:CallbackCallback invoked when the operation fails.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-