[ sisc-Bugs-1455041 ] No conversion functions between ports and Java I/O types
"SourceForge.net" <[email protected]> Mon, 20 Mar 2006 16:41:34 -0800
| Newsgroups | gmane.comp.java.sisc.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1455041, was opened at 2006-03-20 19:41 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=379534&aid=1455041&group_id=23735 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Alessandro Colomba (acolomba) Assigned to: Nobody/Anonymous (nobody) Summary: No conversion functions between ports and Java I/O types Initial Comment: SISC does not offer utility functions to easily convert between ports and Java I/O types. The following API should be implemented, as discussed in the sisc-devel mailing list: ;; 1. InputStream -> <native-input-port> (define-method (->binary-input-port (<java.io.input-stream> is)) ;; 2. OutputStream -> <native-output-port> (define-method (->binary-output-port (<java.io.output-stream> os) (<boolean> aflush?)) (define-method (->binary-output-port (<java.io.output-stream> os)) ;; 3. Reader -> <native-character-input-port> (define-method (->character-input-port (<java.io.reader> reader)) ;; 4. Writer -> <native-character-output-port> (define-method (->character-output-port (<java.io.writer> writer) (<boolean> aflush?)) (define-method (->character-output-port (<java.io.writer> writer)) ;; 5. <filter-input-port> -> InputStream (define-method (->jinput-stream (<filter-input-port> in-port)) ;; 6. <character-input-port> -> InputStream (error) (define-method (->jinput-stream (<character-input-port> in-port)) ;; 7. <filter-output-port> -> OutputStream (define-method (->joutput-stream (<filter-output-port> out-port)) ;; 8. <character-output-port> -> OutputStream (error) (define-method (->joutput-stream (<character-output-port> out-port)) ;; 9. <native-character-input-port> => Reader (define-method (->jreader (<native-character-input-port> in-port)) ;; 10. <native-character-output-port> => Writer (define-method (->jwriter (<native-character-output-port> out-port)) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=379534&aid=1455041&group_id=23735 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642