A B C D F G H I J L M N O P R S T W 

A

AbstractBuffer - Class in net.smacke.jaydio.buffer
Skeletal implementation of Buffer.
AbstractBuffer(int, int, int) - Constructor for class net.smacke.jaydio.buffer.AbstractBuffer
 
AlignedDirectByteBuffer - Class in net.smacke.jaydio.buffer
Implementation of Buffer which uses JNA to get access to properly aligned native memory, for use with the O_DIRECT flag.
allocate(DirectIoLib, int) - Static method in class net.smacke.jaydio.buffer.AlignedDirectByteBuffer
Allocate capacity bytes of native memory for use as a buffer, and return a AlignedDirectByteBuffer which gives an interface to this memory.
allocate(int) - Static method in class net.smacke.jaydio.buffer.JavaHeapByteBuffer
 

B

blockEnd(long) - Method in class net.smacke.jaydio.DirectIoLib
Given value, find the smallest number greater than or equal to value which is a multiple of the fs block size.
blockEnd(int) - Method in class net.smacke.jaydio.DirectIoLib
 
blockEnd(int, long) - Static method in class net.smacke.jaydio.DirectIoLib
Static variant of DirectIoLib.blockEnd(int).
blockSize() - Method in class net.smacke.jaydio.DirectIoLib
 
blockStart(long) - Method in class net.smacke.jaydio.DirectIoLib
Given value, find the largest number less than or equal to value which is a multiple of the fs block size.
blockStart(int) - Method in class net.smacke.jaydio.DirectIoLib
 
Buffer - Interface in net.smacke.jaydio.buffer
A container used to buffer some arbitrary type.
BufferedChannel<T extends Buffer> - Interface in net.smacke.jaydio.channel
Channel which supports positional reads and writes from/to a buffer to an underlying resource.
ByteChannelAligner<T extends JaydioByteBuffer> - Class in net.smacke.jaydio.align
Abstract class which handles reading and writing from/to an underlying byte channel in appropriate increments and and at appropriate boundaries of the channel.
ByteChannelAligner(DirectIoLib, BufferedChannel<T>, T) - Constructor for class net.smacke.jaydio.align.ByteChannelAligner
 

C

capacity - Variable in class net.smacke.jaydio.buffer.AbstractBuffer
 
capacity() - Method in class net.smacke.jaydio.buffer.AbstractBuffer
 
capacity() - Method in interface net.smacke.jaydio.buffer.Buffer
 
clear() - Method in class net.smacke.jaydio.buffer.AbstractBuffer
 
clear() - Method in interface net.smacke.jaydio.buffer.Buffer
 
close() - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
close() - Method in class net.smacke.jaydio.buffer.AbstractBuffer
 
close() - Method in class net.smacke.jaydio.buffer.AlignedDirectByteBuffer
 
close() - Method in interface net.smacke.jaydio.buffer.Buffer
Free any resources associated with this buffer.
close() - Method in class net.smacke.jaydio.buffer.JavaHeapByteBuffer
 
close() - Method in class net.smacke.jaydio.channel.DirectIoByteChannel
 
close() - Method in class net.smacke.jaydio.channel.MockByteChannel
 
close(int) - Method in class net.smacke.jaydio.DirectIoLib
See "man 2 close"
close() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
copy() - Method in class net.smacke.jaydio.buffer.AlignedDirectByteBuffer
 
copy() - Method in interface net.smacke.jaydio.buffer.Buffer
Returns a deep copy of this Buffer.
copy() - Method in class net.smacke.jaydio.buffer.JavaHeapByteBuffer
 
copy() - Method in interface net.smacke.jaydio.buffer.JaydioByteBuffer
 

D

defaultBufferSize() - Method in class net.smacke.jaydio.DirectIoLib
Returns the default buffer size for file channels doing O_DIRECT I/O.
DirectIoByteChannel - Class in net.smacke.jaydio.channel
An BufferedChannel implementation which uses DirectIoLib for JNA hooks to native Linux methods.
DirectIoByteChannelAligner - Class in net.smacke.jaydio.align
 
DirectIoByteChannelAligner(DirectIoLib, BufferedChannel<AlignedDirectByteBuffer>, AlignedDirectByteBuffer) - Constructor for class net.smacke.jaydio.align.DirectIoByteChannelAligner
 
DirectIoLib - Class in net.smacke.jaydio
Class containing native hooks and utility methods for performing direct I/O, using the Linux O_DIRECT flag.
DirectIoLib(int) - Constructor for class net.smacke.jaydio.DirectIoLib
 
DirectRandomAccessFile - Class in net.smacke.jaydio
Class to emulate the behavior of RandomAccessFile, but using direct I/O.
DirectRandomAccessFile(String, String) - Constructor for class net.smacke.jaydio.DirectRandomAccessFile
 
DirectRandomAccessFile(File, String) - Constructor for class net.smacke.jaydio.DirectRandomAccessFile
 
DirectRandomAccessFile(File, String, int) - Constructor for class net.smacke.jaydio.DirectRandomAccessFile
 

F

flip() - Method in class net.smacke.jaydio.buffer.AbstractBuffer
 
flip() - Method in interface net.smacke.jaydio.buffer.Buffer
 
flush() - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
free(Pointer) - Static method in class net.smacke.jaydio.DirectIoLib
See "man 3 free".
ftruncate(int, long) - Static method in class net.smacke.jaydio.DirectIoLib
 

G

get(byte[], int, int) - Method in class net.smacke.jaydio.buffer.AlignedDirectByteBuffer
 
get(byte[]) - Method in class net.smacke.jaydio.buffer.AlignedDirectByteBuffer
 
get(ByteBuffer) - Method in class net.smacke.jaydio.buffer.AlignedDirectByteBuffer
 
get() - Method in class net.smacke.jaydio.buffer.AlignedDirectByteBuffer
 
get() - Method in class net.smacke.jaydio.buffer.JavaHeapByteBuffer
 
get(byte[], int, int) - Method in class net.smacke.jaydio.buffer.JavaHeapByteBuffer
 
get(ByteBuffer) - Method in class net.smacke.jaydio.buffer.JavaHeapByteBuffer
 
get(byte[]) - Method in class net.smacke.jaydio.buffer.JavaHeapByteBuffer
 
get() - Method in interface net.smacke.jaydio.buffer.JaydioByteBuffer
 
get(byte[]) - Method in interface net.smacke.jaydio.buffer.JaydioByteBuffer
 
get(byte[], int, int) - Method in interface net.smacke.jaydio.buffer.JaydioByteBuffer
 
get(ByteBuffer) - Method in interface net.smacke.jaydio.buffer.JaydioByteBuffer
Reads min(this.remaining(),dst.remaining()) bytes from this buffer into dst.
getChannel(File, boolean) - Static method in class net.smacke.jaydio.channel.DirectIoByteChannel
 
getChannel(DirectIoLib, File, boolean) - Static method in class net.smacke.jaydio.channel.DirectIoByteChannel
 
getChannel(long, int, boolean) - Static method in class net.smacke.jaydio.channel.MockByteChannel
Factory method returning a new MockByteChannel.
getFD() - Method in interface net.smacke.jaydio.channel.BufferedChannel
 
getFD() - Method in class net.smacke.jaydio.channel.DirectIoByteChannel
 
getFD() - Method in class net.smacke.jaydio.channel.MockByteChannel
 
getFilePointer() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
getLastError() - Static method in class net.smacke.jaydio.DirectIoLib
Hooks into errno using Native.getLastError(), and parses it with native strerror function.
getLibForPath(String) - Static method in class net.smacke.jaydio.DirectIoLib
Static method to register JNA hooks for doing direct I/O

H

hasRemaining() - Method in class net.smacke.jaydio.buffer.AbstractBuffer
 
hasRemaining() - Method in interface net.smacke.jaydio.buffer.Buffer
 

I

isOpen() - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
isOpen - Variable in class net.smacke.jaydio.buffer.AbstractBuffer
 
isOpen() - Method in class net.smacke.jaydio.buffer.AbstractBuffer
 
isOpen() - Method in interface net.smacke.jaydio.buffer.Buffer
 
isOpen() - Method in class net.smacke.jaydio.channel.DirectIoByteChannel
 
isOpen() - Method in class net.smacke.jaydio.channel.MockByteChannel
 
isReadOnly() - Method in interface net.smacke.jaydio.channel.BufferedChannel
 
isReadOnly() - Method in class net.smacke.jaydio.channel.DirectIoByteChannel
 
isReadOnly() - Method in class net.smacke.jaydio.channel.MockByteChannel
 

J

JavaHeapByteBuffer - Class in net.smacke.jaydio.buffer
A mock implementation of JaydioByteBuffer, used for testing.
JavaHeapByteBuffer(int, int, int) - Constructor for class net.smacke.jaydio.buffer.JavaHeapByteBuffer
 
JaydioByteBuffer - Interface in net.smacke.jaydio.buffer
 

L

lcm(long, long) - Static method in class net.smacke.jaydio.DirectIoLib
 
length() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
limit - Variable in class net.smacke.jaydio.buffer.AbstractBuffer
 
limit(int) - Method in class net.smacke.jaydio.buffer.AbstractBuffer
 
limit() - Method in class net.smacke.jaydio.buffer.AbstractBuffer
 
limit() - Method in interface net.smacke.jaydio.buffer.Buffer
 
limit(int) - Method in interface net.smacke.jaydio.buffer.Buffer
 

M

MockByteChannel - Class in net.smacke.jaydio.channel
A mock implementation of BufferedChannel, to be used for testing.
MockByteChannel(long, boolean) - Constructor for class net.smacke.jaydio.channel.MockByteChannel
 
MockByteChannelAligner - Class in net.smacke.jaydio.align
 
MockByteChannelAligner(DirectIoLib, BufferedChannel<JaydioByteBuffer>, JaydioByteBuffer) - Constructor for class net.smacke.jaydio.align.MockByteChannelAligner
 
MockDirectIoLib - Class in net.smacke.jaydio.align
 

N

net.smacke.jaydio - package net.smacke.jaydio
 
net.smacke.jaydio.align - package net.smacke.jaydio.align
 
net.smacke.jaydio.buffer - package net.smacke.jaydio.buffer
 
net.smacke.jaydio.channel - package net.smacke.jaydio.channel
 

O

O_CREAT - Static variable in class net.smacke.jaydio.OpenFlags
 
O_DIRECT - Static variable in class net.smacke.jaydio.OpenFlags
 
O_RDONLY - Static variable in class net.smacke.jaydio.OpenFlags
 
O_RDWR - Static variable in class net.smacke.jaydio.OpenFlags
 
O_SYNC - Static variable in class net.smacke.jaydio.OpenFlags
 
O_TRUNC - Static variable in class net.smacke.jaydio.OpenFlags
 
O_WRONLY - Static variable in class net.smacke.jaydio.OpenFlags
 
oDirectOpen(String, boolean) - Method in class net.smacke.jaydio.DirectIoLib
Use the open Linux system call and pass in the O_DIRECT flag.
open(File) - Static method in class net.smacke.jaydio.align.DirectIoByteChannelAligner
 
open(File, int) - Static method in class net.smacke.jaydio.align.DirectIoByteChannelAligner
 
open(File, boolean) - Static method in class net.smacke.jaydio.align.DirectIoByteChannelAligner
 
open(File, int, boolean) - Static method in class net.smacke.jaydio.align.DirectIoByteChannelAligner
 
open(DirectIoLib, File, int, boolean) - Static method in class net.smacke.jaydio.align.DirectIoByteChannelAligner
 
OpenFlags - Class in net.smacke.jaydio

P

pointer() - Method in class net.smacke.jaydio.buffer.AlignedDirectByteBuffer
 
position() - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
position(long) - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
position - Variable in class net.smacke.jaydio.buffer.AbstractBuffer
 
position(int) - Method in class net.smacke.jaydio.buffer.AbstractBuffer
 
position() - Method in class net.smacke.jaydio.buffer.AbstractBuffer
 
position() - Method in interface net.smacke.jaydio.buffer.Buffer
 
position(int) - Method in interface net.smacke.jaydio.buffer.Buffer
 
posix_memalign(PointerByReference, NativeLong, NativeLong) - Static method in class net.smacke.jaydio.DirectIoLib
Given a pointer-to-pointer memptr, sets the dereferenced value to point to the start of an allocated block of size bytes, where the starting address is a multiple of alignment.
pread(int, AlignedDirectByteBuffer, long) - Method in class net.smacke.jaydio.DirectIoLib
Interface into native pread function.
put(byte[], int, int) - Method in class net.smacke.jaydio.buffer.AlignedDirectByteBuffer
 
put(byte[]) - Method in class net.smacke.jaydio.buffer.AlignedDirectByteBuffer
 
put(ByteBuffer) - Method in class net.smacke.jaydio.buffer.AlignedDirectByteBuffer
 
put(byte) - Method in class net.smacke.jaydio.buffer.AlignedDirectByteBuffer
 
put(byte[]) - Method in class net.smacke.jaydio.buffer.JavaHeapByteBuffer
 
put(byte[], int, int) - Method in class net.smacke.jaydio.buffer.JavaHeapByteBuffer
 
put(ByteBuffer) - Method in class net.smacke.jaydio.buffer.JavaHeapByteBuffer
 
put(byte) - Method in class net.smacke.jaydio.buffer.JavaHeapByteBuffer
 
put(byte) - Method in interface net.smacke.jaydio.buffer.JaydioByteBuffer
 
put(byte[]) - Method in interface net.smacke.jaydio.buffer.JaydioByteBuffer
 
put(byte[], int, int) - Method in interface net.smacke.jaydio.buffer.JaydioByteBuffer
 
put(ByteBuffer) - Method in interface net.smacke.jaydio.buffer.JaydioByteBuffer
Writes min(this.remaining(),src.remaining()) bytes into this buffer.
pwrite(int, AlignedDirectByteBuffer, long) - Method in class net.smacke.jaydio.DirectIoLib
Interface into native pwrite function.

R

read(ByteBuffer) - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
read() - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
read(T, long) - Method in interface net.smacke.jaydio.channel.BufferedChannel
Reads from this channel into the dst buffer from position.
read(AlignedDirectByteBuffer, long) - Method in class net.smacke.jaydio.channel.DirectIoByteChannel
 
read(JaydioByteBuffer, long) - Method in class net.smacke.jaydio.channel.MockByteChannel
 
read() - Method in class net.smacke.jaydio.DirectRandomAccessFile
Reads one byte, and returns cast as an int.
read(byte[], int, int) - Method in class net.smacke.jaydio.DirectRandomAccessFile
Bulk read bytes from channel into dst.
read(byte[]) - Method in class net.smacke.jaydio.DirectRandomAccessFile
Bulk read bytes from channel into dst.
readBoolean() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readByte() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readBytes(byte[], int, int) - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
readChar() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readDouble() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readFloat() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readFully(byte[]) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readFully(byte[], int, int) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readInt() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readLine() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readLong() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readShort() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readUnsignedByte() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readUnsignedShort() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
readUTF() - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
remaining() - Method in class net.smacke.jaydio.buffer.AbstractBuffer
 
remaining() - Method in interface net.smacke.jaydio.buffer.Buffer
 
rewind() - Method in class net.smacke.jaydio.buffer.AbstractBuffer
 
rewind() - Method in interface net.smacke.jaydio.buffer.Buffer
 

S

seek(long) - Method in class net.smacke.jaydio.DirectRandomAccessFile
Seeks to position pos within the file.
size() - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
size() - Method in interface net.smacke.jaydio.channel.BufferedChannel
 
size() - Method in class net.smacke.jaydio.channel.DirectIoByteChannel
 
size() - Method in class net.smacke.jaydio.channel.MockByteChannel
 
skipBytes(int) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 

T

truncate(long) - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
truncate(long) - Method in interface net.smacke.jaydio.channel.BufferedChannel
Truncates this file's length to fileLength.
truncate(long) - Method in class net.smacke.jaydio.channel.DirectIoByteChannel
 
truncate(long) - Method in class net.smacke.jaydio.channel.MockByteChannel
 

W

write(ByteBuffer) - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
write(int) - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
write(T, long) - Method in interface net.smacke.jaydio.channel.BufferedChannel
Writes from the src buffer into this channel at position.
write(AlignedDirectByteBuffer, long) - Method in class net.smacke.jaydio.channel.DirectIoByteChannel
 
write(JaydioByteBuffer, long) - Method in class net.smacke.jaydio.channel.MockByteChannel
 
write(int) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
write(byte[]) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
write(byte[], int, int) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
writeBoolean(boolean) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
writeByte(int) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
writeBytes(byte[], int, int) - Method in class net.smacke.jaydio.align.ByteChannelAligner
 
writeBytes(String) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
writeChar(int) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
writeChars(String) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
writeDouble(double) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
writeFloat(float) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
writeInt(int) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
writeLong(long) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
writeShort(int) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
writeUTF(String) - Method in class net.smacke.jaydio.DirectRandomAccessFile
 
A B C D F G H I J L M N O P R S T W 

Copyright © 2014. All Rights Reserved.