OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libjava/] [java/] [nio/] [channels/] [natChannels.cc] - Blame information for rev 14

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 jlechner
// natChannels.cc - Native part of Channels class.
2
 
3
/* Copyright (C) 2004  Free Software Foundation
4
 
5
   This file is part of libgcj.
6
 
7
This software is copyrighted work licensed under the terms of the
8
Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
9
details.  */
10
 
11
#include <config.h>
12
#include <gcj/cni.h>
13
 
14
#include <java/nio/channels/Channels.h>
15
#include <java/io/FileInputStream.h>
16
#include <java/io/FileOutputStream.h>
17
#include <gnu/java/nio/channels/FileChannelImpl.h>
18
 
19
using java::nio::channels::Channels;
20
using java::io::FileInputStream;
21
using java::io::FileOutputStream;
22
using gnu::java::nio::channels::FileChannelImpl;
23
 
24
FileInputStream*
25
Channels::newInputStream(FileChannelImpl* ch)
26
{
27
  // Needs to be native to bypass Java access protection.
28
  return new FileInputStream (ch);
29
}
30
 
31
FileOutputStream*
32
Channels::newOutputStream(FileChannelImpl* ch)
33
{
34
  // Needs to be native to bypass Java access protection.
35
  return new FileOutputStream (ch);
36
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.