View Javadoc

1   package cz.cuni.amis.pogamut.base.communication.connection;
2   
3   import java.io.Writer;
4   
5   import cz.cuni.amis.pogamut.base.component.bus.exception.ComponentNotRunningException;
6   import cz.cuni.amis.pogamut.base.component.bus.exception.ComponentPausedException;
7   import cz.cuni.amis.utils.exception.PogamutIOException;
8   
9   public abstract class WorldWriter extends Writer {
10  
11  	@Override
12  	public abstract void close() throws PogamutIOException;
13  
14  	@Override
15  	public abstract void flush() throws PogamutIOException;
16  
17  	@Override
18  	public abstract void write(char[] arg0, int arg1, int arg2) throws PogamutIOException, ComponentNotRunningException, ComponentPausedException;
19  
20  	/**
21  	 * Whether the writer is ready.
22  	 * @return
23  	 * @throws PogamutIOException
24  	 */
25  	public abstract boolean ready() throws PogamutIOException;
26  
27  }