Java Code Examples for com.sun.imageio.stream.StreamCloser#removeFromQueue()
The following examples show how to use
com.sun.imageio.stream.StreamCloser#removeFromQueue() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FileCacheImageOutputStream.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageOutputStream</code>. All * pending data is flushed to the output, and the cache file * is closed and removed. The destination <code>OutputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { maxStreamPos = cache.length(); seek(maxStreamPos); flushBefore(maxStreamPos); super.close(); cache.close(); cache = null; cacheFile.delete(); cacheFile = null; stream.flush(); stream = null; StreamCloser.removeFromQueue(closeAction); }
Example 2
Source File: FileCacheImageInputStream.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageInputStream</code>, closing * and removing the cache file. The source <code>InputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { super.close(); disposerRecord.dispose(); // this will close/delete the cache file stream = null; cache = null; cacheFile = null; StreamCloser.removeFromQueue(closeAction); }
Example 3
Source File: FileCacheImageOutputStream.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageOutputStream</code>. All * pending data is flushed to the output, and the cache file * is closed and removed. The destination <code>OutputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { maxStreamPos = cache.length(); seek(maxStreamPos); flushBefore(maxStreamPos); super.close(); cache.close(); cache = null; cacheFile.delete(); cacheFile = null; stream.flush(); stream = null; StreamCloser.removeFromQueue(closeAction); }
Example 4
Source File: FileCacheImageOutputStream.java From Java8CN with Apache License 2.0 | 5 votes |
/** * Closes this <code>FileCacheImageOutputStream</code>. All * pending data is flushed to the output, and the cache file * is closed and removed. The destination <code>OutputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { maxStreamPos = cache.length(); seek(maxStreamPos); flushBefore(maxStreamPos); super.close(); cache.close(); cache = null; cacheFile.delete(); cacheFile = null; stream.flush(); stream = null; StreamCloser.removeFromQueue(closeAction); }
Example 5
Source File: FileCacheImageOutputStream.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Closes this {@code FileCacheImageOutputStream}. All * pending data is flushed to the output, and the cache file * is closed and removed. The destination {@code OutputStream} * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { maxStreamPos = cache.length(); seek(maxStreamPos); flushBefore(maxStreamPos); super.close(); cache.close(); cache = null; cacheFile.delete(); cacheFile = null; stream.flush(); stream = null; StreamCloser.removeFromQueue(closeAction); }
Example 6
Source File: FileCacheImageOutputStream.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageOutputStream</code>. All * pending data is flushed to the output, and the cache file * is closed and removed. The destination <code>OutputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { maxStreamPos = cache.length(); seek(maxStreamPos); flushBefore(maxStreamPos); super.close(); cache.close(); cache = null; cacheFile.delete(); cacheFile = null; stream.flush(); stream = null; StreamCloser.removeFromQueue(closeAction); }
Example 7
Source File: FileCacheImageOutputStream.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Closes this {@code FileCacheImageOutputStream}. All * pending data is flushed to the output, and the cache file * is closed and removed. The destination {@code OutputStream} * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { maxStreamPos = cache.length(); seek(maxStreamPos); flushBefore(maxStreamPos); super.close(); cache.close(); cache = null; cacheFile.delete(); cacheFile = null; stream.flush(); stream = null; StreamCloser.removeFromQueue(closeAction); }
Example 8
Source File: FileCacheImageInputStream.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageInputStream</code>, closing * and removing the cache file. The source <code>InputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { super.close(); disposerRecord.dispose(); // this will close/delete the cache file stream = null; cache = null; cacheFile = null; StreamCloser.removeFromQueue(closeAction); }
Example 9
Source File: FileCacheImageInputStream.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageInputStream</code>, closing * and removing the cache file. The source <code>InputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { super.close(); disposerRecord.dispose(); // this will close/delete the cache file stream = null; cache = null; cacheFile = null; StreamCloser.removeFromQueue(closeAction); }
Example 10
Source File: FileCacheImageInputStream.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageInputStream</code>, closing * and removing the cache file. The source <code>InputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { super.close(); disposerRecord.dispose(); // this will close/delete the cache file stream = null; cache = null; cacheFile = null; StreamCloser.removeFromQueue(closeAction); }
Example 11
Source File: FileCacheImageInputStream.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageInputStream</code>, closing * and removing the cache file. The source <code>InputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { super.close(); disposerRecord.dispose(); // this will close/delete the cache file stream = null; cache = null; cacheFile = null; StreamCloser.removeFromQueue(closeAction); }
Example 12
Source File: FileCacheImageInputStream.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Closes this <code>FileCacheImageInputStream</code>, closing * and removing the cache file. The source <code>InputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { super.close(); disposerRecord.dispose(); // this will close/delete the cache file stream = null; cache = null; cacheFile = null; StreamCloser.removeFromQueue(closeAction); }
Example 13
Source File: FileCacheImageOutputStream.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Closes this <code>FileCacheImageOutputStream</code>. All * pending data is flushed to the output, and the cache file * is closed and removed. The destination <code>OutputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { maxStreamPos = cache.length(); seek(maxStreamPos); flushBefore(maxStreamPos); super.close(); cache.close(); cache = null; cacheFile.delete(); cacheFile = null; stream.flush(); stream = null; StreamCloser.removeFromQueue(closeAction); }
Example 14
Source File: FileCacheImageInputStream.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageInputStream</code>, closing * and removing the cache file. The source <code>InputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { super.close(); disposerRecord.dispose(); // this will close/delete the cache file stream = null; cache = null; cacheFile = null; StreamCloser.removeFromQueue(closeAction); }
Example 15
Source File: FileCacheImageOutputStream.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageOutputStream</code>. All * pending data is flushed to the output, and the cache file * is closed and removed. The destination <code>OutputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { maxStreamPos = cache.length(); seek(maxStreamPos); flushBefore(maxStreamPos); super.close(); cache.close(); cache = null; cacheFile.delete(); cacheFile = null; stream.flush(); stream = null; StreamCloser.removeFromQueue(closeAction); }
Example 16
Source File: FileCacheImageInputStream.java From Java8CN with Apache License 2.0 | 5 votes |
/** * Closes this <code>FileCacheImageInputStream</code>, closing * and removing the cache file. The source <code>InputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { super.close(); disposerRecord.dispose(); // this will close/delete the cache file stream = null; cache = null; cacheFile = null; StreamCloser.removeFromQueue(closeAction); }
Example 17
Source File: FileCacheImageOutputStream.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageOutputStream</code>. All * pending data is flushed to the output, and the cache file * is closed and removed. The destination <code>OutputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { maxStreamPos = cache.length(); seek(maxStreamPos); flushBefore(maxStreamPos); super.close(); cache.close(); cache = null; cacheFile.delete(); cacheFile = null; stream.flush(); stream = null; StreamCloser.removeFromQueue(closeAction); }
Example 18
Source File: FileCacheImageInputStream.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageInputStream</code>, closing * and removing the cache file. The source <code>InputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { super.close(); disposerRecord.dispose(); // this will close/delete the cache file stream = null; cache = null; cacheFile = null; StreamCloser.removeFromQueue(closeAction); }
Example 19
Source File: FileCacheImageOutputStream.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Closes this <code>FileCacheImageOutputStream</code>. All * pending data is flushed to the output, and the cache file * is closed and removed. The destination <code>OutputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { maxStreamPos = cache.length(); seek(maxStreamPos); flushBefore(maxStreamPos); super.close(); cache.close(); cache = null; cacheFile.delete(); cacheFile = null; stream.flush(); stream = null; StreamCloser.removeFromQueue(closeAction); }
Example 20
Source File: FileCacheImageInputStream.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Closes this <code>FileCacheImageInputStream</code>, closing * and removing the cache file. The source <code>InputStream</code> * is not closed. * * @exception IOException if an error occurs. */ public void close() throws IOException { super.close(); disposerRecord.dispose(); // this will close/delete the cache file stream = null; cache = null; cacheFile = null; StreamCloser.removeFromQueue(closeAction); }