Package org.eclipse.jetty.client.util
Class MultiPartContentProvider.MultiPartIterator
- java.lang.Object
-
- org.eclipse.jetty.client.util.MultiPartContentProvider.MultiPartIterator
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.util.Iterator<java.nio.ByteBuffer>,Synchronizable,Callback,Invocable
- Enclosing class:
- MultiPartContentProvider
private class MultiPartContentProvider.MultiPartIterator extends java.lang.Object implements java.util.Iterator<java.nio.ByteBuffer>, Synchronizable, Callback, java.io.Closeable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.Nested
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType
-
-
Field Summary
Fields Modifier and Type Field Description private intindexprivate java.util.Iterator<java.nio.ByteBuffer>iteratorprivate MultiPartContentProvider.Statestate-
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
-
Constructor Summary
Constructors Modifier Constructor Description privateMultiPartIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfailed(java.lang.Throwable x)Callback invoked when the operation fails.java.lang.ObjectgetLock()booleanhasNext()java.nio.ByteBuffernext()voidsucceeded()Callback invoked when the operation completes.-
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
-
-
-
-
Field Detail
-
iterator
private java.util.Iterator<java.nio.ByteBuffer> iterator
-
index
private int index
-
state
private MultiPartContentProvider.State state
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.nio.ByteBuffer>
-
next
public java.nio.ByteBuffer next()
- Specified by:
nextin interfacejava.util.Iterator<java.nio.ByteBuffer>
-
getLock
public java.lang.Object 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.
- Specified by:
succeededin interfaceCallback- See Also:
Callback.failed(Throwable)
-
failed
public void failed(java.lang.Throwable x)
Description copied from interface:CallbackCallback invoked when the operation fails.
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-