< prev index next >

src/java.base/share/classes/java/util/zip/ZStreamRef.java

Print this page




  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.util.zip;
  27 
  28 /**
  29  * A reference to the native zlib's z_stream structure.
  30  */
  31 
  32 class ZStreamRef {
  33 
  34     private long address;
  35     ZStreamRef (long address) {
  36         this.address = address;
  37     }
  38 
  39     long address() {
  40         return address;
  41     }
  42 
  43     void clear() {
  44         address = 0;
  45     }
  46 }


  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.util.zip;
  27 
  28 /**
  29  * A reference to the native zlib's z_stream structure.
  30  */
  31 
  32 class ZStreamRef {
  33 
  34     private volatile long address;
  35     ZStreamRef (long address) {
  36         this.address = address;
  37     }
  38 
  39     long address() {
  40         return address;
  41     }
  42 
  43     void clear() {
  44         address = 0;
  45     }
  46 }
< prev index next >