@Override public boolean isEndElement() { try { return xpp.getEventType() == XmlPullParser.END_TAG; } catch (XmlPullParserException e) { throw Throwables.propagate(e); } }
public static RuntimeException propagate(Throwable throwable) { propagateIfInstanceOf(throwable, Error.class); propagateIfInstanceOf(throwable, RuntimeException.class); throw new RuntimeException(throwable); }
public void endCallback() { try { writer.write(");"); } catch (IOException e) { throw Throwables.propagate(e); } }
public static RuntimeException propagate(Throwable throwable) { propagateIfInstanceOf(throwable, Error.class); propagateIfInstanceOf(throwable, RuntimeException.class); throw new RuntimeException(throwable); }
public void writeSeparator() { try { writer.write(", "); } catch (IOException e) { throw Throwables.propagate(e); } }
public void writeNull() { try { writer.write("null"); } catch (IOException e) { throw Throwables.propagate(e); } }
public void startArray() { try { writer.write("[\n"); } catch (IOException e) { throw Throwables.propagate(e); } }
public void writeRaw(String value) { try { writer.write(value); } catch (IOException e) { throw Throwables.propagate(e); } }
@Override public boolean isStartElement() { try { return xpp.getEventType() == XmlPullParser.START_TAG; } catch (XmlPullParserException e) { throw Throwables.propagate(e); } }
@Override public ODataClientRequest transform(ODataClientRequest request) { try { Thread.sleep(millis); } catch (InterruptedException e) { throw Throwables.propagate(e); } return request; } };
private void write(String value) { try { writer.write(value); } catch (IOException e) { throw Throwables.propagate(e); } }
public static void sleep(long millis) { try { Thread.sleep(millis); } catch (InterruptedException e) { throw Throwables.propagate(e); } }
public void startObject() { try { writer.write("{\n"); } catch (IOException e) { throw Throwables.propagate(e); } }
public void endObject() { try { writer.write("\n}"); } catch (IOException e) { throw Throwables.propagate(e); } }
public void writeBoolean(boolean value) { try { writer.write(value ? "true" : "false"); } catch (IOException e) { throw Throwables.propagate(e); } }
@Override public <T> void set(T value) { try { field.set(target, value); } catch (Exception e) { throw Throwables.propagate(e); } }
public static void sleep(long millis) { try { Thread.sleep(millis); } catch (InterruptedException e) { throw Throwables.propagate(e); } }
@Override public boolean isStartElement() { try { return xpp.getEventType() == XmlPullParser.START_TAG; } catch (XmlPullParserException e) { throw Throwables.propagate(e); } }
public void startArray() { try { writer.write("[\n"); } catch (IOException e) { throw Throwables.propagate(e); } }
public void writeRaw(String value) { try { writer.write(value); } catch (IOException e) { throw Throwables.propagate(e); } }