Package org.hsqldb.lib

Examples of org.hsqldb.lib.StringInputStream


    throws SQLException
  {
    String str = getString(paramInt);
    if (str == null)
      return null;
    return new StringInputStream(str);
  }
View Full Code Here


                factory.setNamespaceAware(true);
                DocumentBuilder builder = factory.newDocumentBuilder();
                if (!data.startsWith("<?xml")) {
                    data = "<?xml version=\"1.0\" encoding=\"UTF-16\"?>\n" + data;
                }
                return builder.parse(new StringInputStream(data));
            } catch (Throwable t) {
                LOGGER.log(Level.FINE, "Failed to parse XML, assuming it's plain text", t);
                return null;
            }
        }
View Full Code Here

        throw new UnsupportedOperationException("GPX files can not be used as input");
    }

    @Override
    public Object decode(String input) throws UnsupportedOperationException {
        return decode(new StringInputStream(input));
    }
View Full Code Here

                factory.setNamespaceAware(true);
                DocumentBuilder builder = factory.newDocumentBuilder();
                if (!data.startsWith("<?xml")) {
                    data = "<?xml version=\"1.0\" encoding=\"UTF-16\"?>\n" + data;
                }
                return builder.parse(new StringInputStream(data));
            } catch (Throwable t) {
                LOGGER.log(Level.FINE, "Failed to parse XML, assuming it's plain text", t);
                return null;
            }
        }
View Full Code Here

TOP

Related Classes of org.hsqldb.lib.StringInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.