/[classpath]/classpath/vm/reference/java/nio/channels/VMChannels.java
ViewVC logotype

Diff of /classpath/vm/reference/java/nio/channels/VMChannels.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mkoch, Wed Jan 12 10:08:13 2005 UTC revision 1.2 by jfrijters, Thu Jan 13 14:31:36 2005 UTC
# Line 49  import java.io.OutputStream; Line 49  import java.io.OutputStream;
49  import java.lang.reflect.Constructor;  import java.lang.reflect.Constructor;
50  import java.lang.reflect.InvocationTargetException;  import java.lang.reflect.InvocationTargetException;
51    
52  public final class VMChannels  final class VMChannels
53  {  {
54    /**    /**
55     * This class isn't intended to be instantiated.     * This class isn't intended to be instantiated.
# Line 95  public final class VMChannels Line 95  public final class VMChannels
95    /**    /**
96     * Constructs a stream that reads bytes from the given channel.     * Constructs a stream that reads bytes from the given channel.
97     */     */
98    public static InputStream newInputStream(ReadableByteChannel ch)    static InputStream newInputStream(ReadableByteChannel ch)
99    {    {
100      if (ch instanceof FileChannelImpl)      if (ch instanceof FileChannelImpl)
101        return (FileInputStream) createStream(FileInputStream.class, ch);        return (FileInputStream) createStream(FileInputStream.class, ch);
# Line 106  public final class VMChannels Line 106  public final class VMChannels
106    /**    /**
107     * Constructs a stream that writes bytes to the given channel.     * Constructs a stream that writes bytes to the given channel.
108     */     */
109    public static OutputStream newOutputStream(WritableByteChannel ch)    static OutputStream newOutputStream(WritableByteChannel ch)
110    {    {
111      if (ch instanceof FileChannelImpl)      if (ch instanceof FileChannelImpl)
112        return (FileOutputStream) createStream(FileOutputStream.class, ch);        return (FileOutputStream) createStream(FileOutputStream.class, ch);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26