public synchronized Reader getCharacterStream() throws SQLException { checkFreed(); ensureInitialized(); if (_data == null) return null; return new StringReader(_data); }
public synchronized String getString() throws SQLException { checkFreed(); ensureInitialized(); return _data; }
public synchronized Source getSource(Class sourceClass) throws SQLException ensureInitialized();
public synchronized InputStream getBinaryStream() throws SQLException { checkFreed(); ensureInitialized(); if (_data == null) return null; try { return new ByteArrayInputStream(_conn.getEncoding().encode(_data)); } catch (IOException ioe) { // This should be a can't happen exception. We just // decoded this data, so it would be surprising that // we couldn't encode it. // For this reason don't make it translatable. throw new PSQLException("Failed to re-encode xml data.", PSQLState.DATA_ERROR, ioe); } }
public synchronized Reader getCharacterStream() throws SQLException { checkFreed(); ensureInitialized(); if (_data == null) return null; return new StringReader(_data); }
public synchronized Reader getCharacterStream() throws SQLException { checkFreed(); ensureInitialized(); if (_data == null) return null; return new StringReader(_data); }
public synchronized String getString() throws SQLException { checkFreed(); ensureInitialized(); return _data; }
public synchronized String getString() throws SQLException { checkFreed(); ensureInitialized(); return _data; }
public synchronized Source getSource(Class sourceClass) throws SQLException ensureInitialized();
public synchronized Source getSource(Class sourceClass) throws SQLException ensureInitialized();
public synchronized InputStream getBinaryStream() throws SQLException { checkFreed(); ensureInitialized(); if (_data == null) return null; try { return new ByteArrayInputStream(_conn.getEncoding().encode(_data)); } catch (IOException ioe) { // This should be a can't happen exception. We just // decoded this data, so it would be surprising that // we couldn't encode it. // For this reason don't make it translatable. throw new PSQLException("Failed to re-encode xml data.", PSQLState.DATA_ERROR, ioe); } }
public synchronized InputStream getBinaryStream() throws SQLException { checkFreed(); ensureInitialized(); if (_data == null) return null; try { return new ByteArrayInputStream(_conn.getEncoding().encode(_data)); } catch (IOException ioe) { // This should be a can't happen exception. We just // decoded this data, so it would be surprising that // we couldn't encode it. // For this reason don't make it translatable. throw new PSQLException("Failed to re-encode xml data.", PSQLState.DATA_ERROR, ioe); } }