- java.lang.Object
-
- de.ibapl.jnhw.posix.Stdio
-
@Include("#include <stdio.h>") public class Stdio extends Object
Wrapper around the<stdio.h>header. See specs at: stdio.h - standard buffered input/output.- Author:
- aploese
-
-
Field Summary
Fields Modifier and Type Field Description static intEOFPOSIX:End-of-file return value.static booleanHAVE_STDIO_Hstatic intSEEK_CURPOSIX:seek relative to current position.static intSEEK_ENDPOSIX: Seek relative to end-of-file.static intSEEK_SETPOSIX: Seek relative to start-of-file.
-
Constructor Summary
Constructors Constructor Description Stdio()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static chargetchar()static voidputchar(char c)static voidremove(String path)POSIX: remove - remove a file.
-
-
-
Field Detail
-
HAVE_STDIO_H
public static final boolean HAVE_STDIO_H
-
SEEK_CUR
@Define public static int SEEK_CUR
POSIX:seek relative to current position.
-
EOF
@Define public static int EOF
POSIX:End-of-file return value.
-
SEEK_END
@Define public static int SEEK_END
POSIX: Seek relative to end-of-file.
-
SEEK_SET
@Define public static int SEEK_SET
POSIX: Seek relative to start-of-file.
-
-
Method Detail
-
getchar
public static char getchar() throws NativeErrorException- Throws:
NativeErrorException- if the return value of the native function indicates an error.
-
putchar
public static void putchar(char c) throws NativeErrorException- Throws:
NativeErrorException- if the return value of the native function indicates an error.
-
remove
public static void remove(String path) throws NativeErrorException
POSIX: remove - remove a file.- Parameters:
path- the pathname naming the file.- Throws:
NullPointerException- iffileisnull.NativeErrorException- if the return value of the native function indicates an error.
-
-