langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/comp/SmartFileObject.java
changeset 26107 a4a156a33c94
parent 26098 32588700060b
parent 25874 83c19f00452c
child 26266 2d24bda701dc
equal deleted inserted replaced
25876:d06a6d3c66c0 26107:a4a156a33c94
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    34 /**
    34 /**
    35  * The SmartFileObject will return an outputstream that cache the written data
    35  * The SmartFileObject will return an outputstream that cache the written data
    36  * and compare the new content with the old content on disk. Only if they differ,
    36  * and compare the new content with the old content on disk. Only if they differ,
    37  * will the file be updated.
    37  * will the file be updated.
    38  *
    38  *
    39  * <p><b>This is NOT part of any supported API.
    39  *  <p><b>This is NOT part of any supported API.
    40  * If you write code that depends on this, you do so at your own
    40  *  If you write code that depends on this, you do so at your own risk.
    41  * risk.  This code and its internal interfaces are subject to change
    41  *  This code and its internal interfaces are subject to change or
    42  * or deletion without notice.</b></p>
    42  *  deletion without notice.</b>
    43  */
    43  */
    44 public class SmartFileObject implements JavaFileObject {
    44 public class SmartFileObject implements JavaFileObject {
    45 
    45 
    46     JavaFileObject file;
    46     JavaFileObject file;
    47     PrintWriter stdout;
    47     PrintWriter stdout;