jdk/src/sample/share/try-with-resources/index.html
author emc
Wed, 05 Nov 2014 08:37:04 -0500
changeset 27386 784414cffd9a
parent 25859 3317bb8137f4
child 32427 c22b7e41adf3
permissions -rw-r--r--
8035259: javac, incorrect shadowing of classes vs type parameters Summary: Cause javac to look at type variables first when resolving names in an extends/implements list Reviewed-by: mcimadamore, jlahoda
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>