Tabnine Logo
FileObject.getOutputStream
Code IndexAdd Tabnine 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)

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

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JFrame (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now