public InputStream asInputStream() { return value.asInputStream(); }
public Reader asReader() { return value.asReader(); }
public String asString() { return value.asString(); }
public boolean isCached() { return value.isCached(); }
public void writeTo(OutputStream outputStream) throws IOException { value.writeTo(outputStream); }
public ValueType getValueType() { return value.getValueType(); } }
public ItemType getItemType() { return value.getItemType(); }
public boolean isFetchable() { if (value.isCached()) { return true; } if (value instanceof StreamableItem) { StreamableItem sitem = (StreamableItem)value; return (sitem.isFetchable()); } return (false); }
public void writeTo(Writer writer) throws IOException { value.writeTo(writer); }
public void cache() { if (!value.isCached()) { asString(); } }
public static String[] asStringArray(XdmSequence<?> sequence) { XdmItem[] items = sequence.toArray(); String[] strings = new String[items.length]; for (int i = 0; i < items.length; i++) { strings[i] = items[i].asString(); } return (strings); }
private void refreshContentBaseIdentity() throws RequestException { if (stillFresh(lastContentBaseNameCheck)) { return; } lastContentBaseNameCheck = System.currentTimeMillis(); ResultSequence rs = session.submitRequest(contentBaseNameRequest); if (rs.itemAt(0) instanceof XSDecimal) { contentbaseId = ((XSDecimal)rs.itemAt(0)).asBigDecimal().toBigInteger(); } else { contentbaseId = ((XSInteger)rs.itemAt(0)).asBigInteger(); } contentBaseName = rs.itemAt(1).asString(); }