Java InputStream Create getInputStream(String xmlStr)

Here you can find the source of getInputStream(String xmlStr)

Description

get InputStream data

License

Open Source License

Parameter

Parameter Description

Return

InputStream

Declaration

static InputStream getInputStream(String xmlStr) 

Method Source Code

//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());
    }
}

Related

  1. getInputStream(String sPath)
  2. getInputStream(String str)
  3. getInputStream(String text)
  4. getInputStream(String thePath)
  5. getInputStream(String url)
  6. getInputStream(String... subpaths)
  7. getInputStream(String[] args)
  8. inputStream(final File file)
  9. inputStream(final String in)