Ejemplo n.º 1
0
        /*
         * Closes this stream. The source stream is closed and any resources
         * associated with it are released.
         *
         * @throws IOException
         *             if an error occurs while closing this stream.
         */
        public override void close() //throws IOException
        {
            buf = null;
            InputStream localIn = inJ;

            inJ = null;
            if (localIn != null)
            {
                localIn.close();
            }
        }
Ejemplo n.º 2
0
        /**
         * Closes this reader. This implementation closes the source InputStream and
         * releases all local storage.
         *
         * @throws IOException
         *             if an error occurs attempting to close this reader.
         */

        public override void close() // throws IOException {
        {
            lock (this.lockJ) {
                decoder = null;
                if (inJ != null)
                {
                    inJ.close();
                    inJ = null;
                }
            }
        }
Ejemplo n.º 3
0
 /**
  * Sets up the next InputStream or leaves it alone if there are none left.
  *
  * @throws IOException
  */
 private void nextStream()
 {        // throws IOException {
     if (inJ != null)
     {
         inJ.close();
     }
     if (e.hasMoreElements())
     {
         inJ = e.nextElement();
         if (inJ == null)
         {
             throw new java.lang.NullPointerException();
         }
     }
     else
     {
         inJ = null;
     }
 }
Ejemplo n.º 4
0
 public override void close()
 {
     inJ.close();
 }