AAPT2: Move all file output to FileOutputStream

FileOutputStream is safe to use on Windows, as it opens
files using our compatibility API.

Bug: 68262818
Test: make aapt2_tests
Change-Id: Ib0b27e93edd609b49b1327db7d9867a002198ebb
This commit is contained in:
Adam Lesinski
2017-11-09 11:29:39 -08:00
parent 60303333dc
commit a693c4a32e
20 changed files with 356 additions and 287 deletions

View File

@@ -22,6 +22,8 @@
#include "androidfw/StringPiece.h"
#include "text/Printer.h"
namespace aapt {
// Builds a JavaDoc comment from a set of XML comments.
@@ -61,8 +63,8 @@ class AnnotationProcessor {
void AppendNewLine();
// Writes the comments and annotations to the stream, with the given prefix before each line.
void WriteToStream(const android::StringPiece& prefix, std::ostream* out) const;
// Writes the comments and annotations to the Printer.
void Print(text::Printer* printer) const;
private:
std::stringstream comment_;