Code example for PrintStream

Methods: PrintStream.println, println

0
     * <the actual snapshot content begins here...> 
     */ 
    private static void generateSnapshotHeader(String processName, PackageInfo packageInfo,
            PrintStream out) {
        // profiler version 
        out.println("Version: 3");
        out.println("Process: " + processName);
        if (packageInfo != null) {
            out.println("Package: " + packageInfo.packageName);
            out.println("Package-Version: " + packageInfo.versionCode);
        } 
        out.println("Build: " + Build.FINGERPRINT);
        // single blank line means the end of snapshot header. 
        out.println();
    } 
}