Code example for PipedInputStream

Methods: close

0
        open(getFormat()); 
    } 
 
    public void close() { 
        try { 
            queue.close();
        } catch (IOException ex) {
            Logger.getLogger(RadioStreamTargetDataLine.class.getName()).log(Level.SEVERE, null, ex);
        } 
        try { 
            pos.close();
        } catch (IOException ex) {
            Logger.getLogger(RadioStreamTargetDataLine.class.getName()).log(Level.SEVERE, null, ex);
        } 
        queue = null;
        pos = null;
    } 
 
    public boolean isOpen() { 
        return queue !=null;