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.Nested
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private Iterator
<ByteBuffer> private MultiPartContentProvider.State
Fields 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, wait
Methods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
Methods 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:
hasNext
in interfaceIterator<ByteBuffer>
-
next
- Specified by:
next
in interfaceIterator<ByteBuffer>
-
getLock
- Specified by:
getLock
in interfaceSynchronizable
- Returns:
- the lock object to synchronize on
-
succeeded
public void succeeded()Description copied from interface:Callback
Callback invoked when the operation completes.
-
failed
Description copied from interface:Callback
Callback invoked when the operation fails.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-