PipedOutputStream os = new PipedOutputStream(is); is.connect(os);
                public void run() {                    try {                        PipedOutputStream os = new PipedOutputStream(is);                        is.connect(os);                        try {                            dch.writeTo(data, mimeType, os);                        } finally {                            os.close();                        }                    } catch (IOException e) {                        // ignore, per spec - doh!                    }                }