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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [java/] [nio/] [channels/] [natVMChannels.cc] - Blame information for rev 781

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 758 jeremybenn
// natVMChannels.cc - Native part of VMChannels class.
2
 
3
/* Copyright (C) 2004, 2006  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/VMChannels.h>
15
#include <java/nio/channels/Channels.h>
16
#include <java/io/FileInputStream.h>
17
#include <java/io/FileOutputStream.h>
18
#include <gnu/java/nio/channels/FileChannelImpl.h>
19
 
20
using java::nio::channels::VMChannels;
21
using java::io::FileInputStream;
22
using java::io::FileOutputStream;
23
using gnu::java::nio::channels::FileChannelImpl;
24
 
25
FileInputStream*
26
VMChannels::newInputStream(FileChannelImpl* ch)
27
{
28
  // Needs to be native to bypass Java access protection.
29
  return new FileInputStream (ch);
30
}
31
 
32
FileOutputStream*
33
VMChannels::newOutputStream(FileChannelImpl* ch)
34
{
35
  // Needs to be native to bypass Java access protection.
36
  return new FileOutputStream (ch);
37
}

powered by: WebSVN 2.1.0

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