| ZStreamRef.java |
1 /*
2 * %W% %E%
3 *
4 * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
5 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6 */
7
8 package java.util.zip;
9
10 /**
11 * A reference to the native zlib's z_stream structure.
12 */
13
14 class ZStreamRef {
15
16 private long address;
17 ZStreamRef (long address) {
18 this.address = address;
19 }
20
21 long address() {
22 return address;
23 }
24
25 void clear() {
26 address = 0;
27 }
28 }
29