Codota Logo
FileObject.getOutputStream
Code IndexAdd Codota to your IDE (free)

How to use
getOutputStream
method
in
org.tinygroup.vfs.FileObject

Best Java code snippets using org.tinygroup.vfs.FileObject.getOutputStream (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.tinygroup/org.tinygroup.flowbasiccomponent

FileObject fileObject = VFS.resolveFile(filePath);
OutputStreamWriter write = new OutputStreamWriter(
    fileObject.getOutputStream(), fileFormat.getEncoding());
BufferedWriter writer = new BufferedWriter(write);
writer.write(fileContent);
origin: org.tinygroup/org.tinygroup.flowbasiccomponent

/**
 * 将修改后的xml写入xml树
 *
 * @param filePath
 * @param xmlNode
 */
private static void writeToXml(String filePath, XmlNode xmlNode,
                String encoding) {
  try {
    if (StringUtil.isBlank(encoding)) {
      encoding = FlowComponentConstants.DEFAULT_ENCODING;
    }
    FileObject fileObject = VFS.resolveFile(filePath);
    XmlNode xn = new XmlNode(XmlNodeType.XML_DECLARATION);
    xn.setAttribute("version", "1.0");
    xn.setAttribute("encoding", encoding);
    StringBuffer sb = new StringBuffer();
    sb.append(xn);
    sb.append(xmlNode);
    StreamUtil.writeText(sb.toString(), fileObject.getOutputStream(),
        encoding, true);
  } catch (Exception e) {
    LOGGER.logMessage(LogLevel.ERROR, "将修改后的xml内容导出到xml树:{0}时失败,错误信息:{1}",
        filePath, e);
    throw new FlowComponentException(
        FlowComponentExceptionErrorCode.OBJECT_SAVE_TO_FILE_FAILED,
        xmlNode.getClass().getName(), filePath, e);
  }
}
origin: org.tinygroup/org.tinygroup.tinyscript.excel

  wb.write(excelFile.getOutputStream());
} finally {
  wb.close();
origin: org.tinygroup/org.tinygroup.tinyscript.excel

  printer = new CSVPrinter(new OutputStreamWriter(csvFile.getOutputStream(), encode),
      (CSVFormat) (CSVFormat.class.getDeclaredField(type).get(CSVFormat.class)));
} catch (NoSuchFieldException e) {
org.tinygroup.vfsFileObjectgetOutputStream

Popular methods of FileObject

  • getInputStream
  • getFileName
  • getAbsolutePath
  • getPath
  • isExist
  • getLastModifiedTime
  • getExtName
  • foreach
  • getChildren
  • getURL
  • isFolder
  • clean
  • isFolder,
  • clean,
  • getSize,
  • isInPackage,
  • getChild,
  • getFileObject,
  • getParent,
  • getSchemaProvider,
  • isModified

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • BoxLayout (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now