jdk/src/sample/share/try-with-resources/index.html
author chegar
Sun, 17 Aug 2014 15:54:13 +0100
changeset 25859 3317bb8137f4
parent 22622 jdk/src/share/sample/try-with-resources/index.html@af09f3c02d2d
child 32427 c22b7e41adf3
permissions -rw-r--r--
8054834: Modular Source Code Reviewed-by: alanb, chegar, ihse, mduigou Contributed-by: alan.bateman@oracle.com, alex.buckley@oracle.com, chris.hegarty@oracle.com, erik.joelsson@oracle.com, jonathan.gibbons@oracle.com, karen.kinnear@oracle.com, magnus.ihse.bursie@oracle.com, mandy.chung@oracle.com, mark.reinhold@oracle.com, paul.sandoz@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22622
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
     1
<!DOCTYPE html>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
     2
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
     3
<html>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
     4
<head>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
     5
    <title>Try-with-Resources Feature Demo</title>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
     6
</head>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
     7
<body>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
     8
<h2>Try-with-Resources Feature Demo</h2>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
     9
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    10
<p>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    11
    This demo shows how to use the try-with-resources feature introduced in JDK7.
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    12
</p>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    13
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    14
<ul>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    15
    <li><h3>Custom AutoCloseable.</h3>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    16
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    17
        <p>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    18
            Shows how to use a custom resource with the try-with-resources construct.
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    19
            For more information, see the source file.
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    20
        </p>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    21
        Source: <a href="src/CustomAutoCloseableSample.java">src/CustomAutoCloseableSample.java</a>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    22
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    23
    <li><h3>Unzip</h3>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    24
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    25
        <p>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    26
            Extracts archived files. For more information, see the source file.
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    27
        </p>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    28
        Source: <a href="src/Unzip.java">src/Unzip.java</a>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    29
    <li><h3>ZipCat</h3>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    30
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    31
        <p>Prints data about a specified file from an archive. For more information, see the source file.</p>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    32
        Source: <a href="src/ZipCat.java">src/ZipCat.java</a>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    33
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    34
</ul>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    35
</body>
af09f3c02d2d 8032020: Update try-with-resources demo
anazarov
parents:
diff changeset
    36
</html>