juzu.io
Class AsyncStreamable

java.lang.Object
  extended by juzu.io.AsyncStreamable
All Implemented Interfaces:
Appendable, Streamable<Stream.Char>

public class AsyncStreamable
extends Object
implements Streamable<Stream.Char>, Appendable

Basic implementation of an asynchronous streamable. This implementation is basic for now:

Author:
Julien Viet

Nested Class Summary
 
Nested classes/interfaces inherited from interface juzu.io.Streamable
Streamable.CharSequence, Streamable.InputStream
 
Constructor Summary
AsyncStreamable()
           
 
Method Summary
 AsyncStreamable append(char c)
           
 AsyncStreamable append(CharSequence csq)
           
 AsyncStreamable append(CharSequence csq, int start, int end)
           
 void close()
           
 void send(Stream.Char stream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncStreamable

public AsyncStreamable()
Method Detail

send

public void send(Stream.Char stream)
          throws IOException
Specified by:
send in interface Streamable<Stream.Char>
Throws:
IOException

append

public AsyncStreamable append(CharSequence csq)
                       throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public AsyncStreamable append(CharSequence csq,
                              int start,
                              int end)
                       throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public AsyncStreamable append(char c)
                       throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

close

public void close()


Copyright © 2013 eXo Platform SAS. All Rights Reserved.