Here you can find the source of getInputStream(String xmlStr)
Parameter | Description |
---|
static InputStream getInputStream(String xmlStr)
//package com.java2s; /*//w ww. j a v a 2s . c om * XMLHelper.java 2004-4-5 * * ??????: ???????(FTO)???? 2000-2005, ?????????. * ????????????(FTO)???????????????????????????????????????? * * Copyright 2000-2005 FTO Software Team, Inc. All Rights Reserved. * This software is the proprietary information of FTO Software Team, Inc. * Use is subject to license terms. * * FTO???http://www.free-think.org */ import java.io.*; public class Main { /** * get InputStream data * * @param xmlStr, xml string * * @return InputStream * */ static InputStream getInputStream(String xmlStr) { return new ByteArrayInputStream(xmlStr.getBytes()); } }