List of usage examples for io.netty.buffer ByteBufInputStream readLine
@Override public String readLine() throws IOException
From source file:com.corundumstudio.socketio.JsonSupportWrapper.java
License:Apache License
public AckArgs readAckArgs(ByteBufInputStream src, AckCallback<?> callback) throws IOException { try {//from ww w .j av a 2 s.c om return delegate.readAckArgs(src, callback); } catch (Exception e) { src.reset(); log.error("Can't read ack args: " + src.readLine() + " for type: " + callback.getResultClass(), e); throw new IOException(e); } }
From source file:com.corundumstudio.socketio.JsonSupportWrapper.java
License:Apache License
public <T> T readValue(String namespaceName, ByteBufInputStream src, Class<T> valueType) throws IOException { try {/*from ww w . j a v a2 s . co m*/ return delegate.readValue(namespaceName, src, valueType); } catch (Exception e) { src.reset(); log.error("Can't read value: " + src.readLine() + " for type: " + valueType, e); throw new IOException(e); } }
From source file:com.corundumstudio.socketio.parser.JsonSupportWrapper.java
License:Apache License
public AckArgs readAckArgs(ByteBufInputStream src, Class<?> argType) throws IOException { try {//from ww w .ja v a2 s. co m return delegate.readAckArgs(src, argType); } catch (IOException e) { src.reset(); log.error("Can't read ack args: " + src.readLine() + " for type: " + argType, e); return null; } catch (RuntimeException e) { src.reset(); log.error("Can't read ack args: " + src.readLine() + " for type: " + argType, e); return null; } }
From source file:com.corundumstudio.socketio.parser.JsonSupportWrapper.java
License:Apache License
public <T> T readValue(ByteBufInputStream src, Class<T> valueType) throws IOException { try {//ww w .j a v a 2 s .c om return delegate.readValue(src, valueType); } catch (IOException e) { src.reset(); log.error("Can't read value 1: " + src.readLine() + " for type: " + valueType, e); return null; } catch (RuntimeException e) { src.reset(); log.error("Can't read value 2: " + src.readLine() + " for type: " + valueType, e); return null; } }
From source file:zixin.socket.JsonSupportWrapper.java
License:Apache License
public AckArgs readAckArgs(ByteBufInputStream src, AckCallback<?> callback) throws IOException { try {//from w ww .ja va 2 s . co m return delegate.readAckArgs(src, callback); } catch (Exception e) { src.reset(); log.error("Can't read ack args: " + src.readLine() + " for type: " + callback.getResultClass(), e); return null; } }
From source file:zixin.socket.JsonSupportWrapper.java
License:Apache License
public <T> T readValue(String namespaceName, ByteBufInputStream src, Class<T> valueType) throws IOException { try {//from ww w . j a va2 s . com return delegate.readValue(namespaceName, src, valueType); } catch (Exception e) { src.reset(); log.error("Can't read value: " + src.readLine() + " for type: " + valueType, e); return null; } }