| 
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.ipc.json.JsonStreamReader
public class JsonStreamReader
IPC reader implementation for the JSON protocol.
| Method Summary | ||
|---|---|---|
 void | 
close()
Closes the reader and the underlying stream.  | 
|
 void | 
closeWithoutStream()
Closes the reader but NOT the underlying stream.  | 
|
 boolean | 
currentBoolValue()
Returns the current token value as boolean value.  | 
|
 double | 
currentDoubleValue()
Returns the current token value as double value.  | 
|
 long | 
currentLongValue()
Returns the current token value as long value.  | 
|
 java.lang.String | 
currentStringValue()
Returns the current token value as string.  | 
|
 java.io.InputStream | 
getStream()
Not supported by this implementation, so this always throws an UnsupportedOperationException. | 
|
 boolean | 
nextBoolValue()
Shortcut for nextToken() + currentBoolValue().  | 
|
 double | 
nextDoubleValue()
Shortcut for nextToken() + currentDoubleValue().  | 
|
 long | 
nextLongValue()
Shortcut for nextToken() + currentLongValue().  | 
|
 java.lang.String | 
nextStringValue()
Shortcut for nextToken() + currentStringValue().  | 
|
 IpcToken | 
nextToken()
Returns the next token.  | 
|
 | 
readObject(java.lang.Class<T> type)
read object of desired class from JSON stream.  | 
|
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public void close()
           throws java.io.IOException
close in interface IpcStreamReaderjava.io.IOException - any error
public void closeWithoutStream()
                        throws java.io.IOException
closeWithoutStream in interface IpcStreamReaderjava.io.IOException - any error
public boolean currentBoolValue()
                         throws java.io.IOException
currentBoolValue in interface IpcStreamReaderjava.io.IOException - any error
public double currentDoubleValue()
                          throws java.io.IOException
currentDoubleValue in interface IpcStreamReaderjava.io.IOException - any error
public long currentLongValue()
                      throws java.io.IOException
currentLongValue in interface IpcStreamReaderjava.io.IOException - any error
public java.lang.String currentStringValue()
                                    throws java.io.IOException
currentStringValue in interface IpcStreamReaderjava.io.IOException - any error
public boolean nextBoolValue()
                      throws java.io.IOException
nextBoolValue in interface IpcStreamReaderjava.io.IOException - any error.
public double nextDoubleValue()
                       throws java.io.IOException
nextDoubleValue in interface IpcStreamReaderjava.io.IOException - any error
public long nextLongValue()
                   throws java.io.IOException
nextLongValue in interface IpcStreamReaderjava.io.IOException - any error
public java.lang.String nextStringValue()
                                 throws java.io.IOException
nextStringValue in interface IpcStreamReaderjava.io.IOException - any error
public IpcToken nextToken()
                   throws java.io.IOException
nextToken in interface IpcStreamReaderjava.io.IOException - any error
public <T> T readObject(java.lang.Class<T> type)
             throws java.io.IOException
T - desired class.type - desired class.
java.io.IOException - parse error.public java.io.InputStream getStream()
UnsupportedOperationException. We have no
 access to internal stream here, stream is wrapped in Jackson implementation.
getStream in interface IpcStreamReader
  | 
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||