|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.server.model.versioning.impl.persistent.OperationEmitter
public class OperationEmitter
Type for emitting AbstractOperation
s when given an ReadLineCapable
type.
Constructor Summary | |
---|---|
OperationEmitter(Direction direction,
File file)
Constructor. |
Method Summary | |
---|---|
void |
close()
Closes the emitter. |
long |
getOffset()
Returns the current offset. |
com.google.common.base.Optional<AbstractOperation> |
tryEmit()
Tries to parse an operation in the reading directions and emits it, if parsing has been successful. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperationEmitter(Direction direction, File file)
direction
- the Direction
that is used for readingfile
- the operation fileMethod Detail |
---|
public long getOffset()
public com.google.common.base.Optional<AbstractOperation> tryEmit() throws IOException
IOException
- in case reading from the ReadLineCapable
failspublic void close()
close
in interface Closeable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |