Skip navigation links
A B C E G H I L M N O P R S T V W 

A

AutoDisposeSingleThreadScheduler - Class in net.dempsy.util.executor
This is a scheduler that will schedule a task to run in the future (or now) and when that task completes it shuts itself down.
AutoDisposeSingleThreadScheduler(String) - Constructor for class net.dempsy.util.executor.AutoDisposeSingleThreadScheduler
 
AutoDisposeSingleThreadScheduler.Cancelable - Class in net.dempsy.util.executor
This object is returned from AutoDisposeSingleThreadScheduler.schedule(Runnable, long, TimeUnit) and can be used to cancel the task - best effort.
available() - Method in class net.dempsy.util.io.MessageBufferInput
Returns the number of remaining bytes that can be read (or skipped over) from this input stream.

B

buf - Variable in class net.dempsy.util.io.MessageBufferInput
An array of bytes that was provided by the creator of the stream.
buf - Variable in class net.dempsy.util.io.MessageBufferOutput
The buffer where data is stored.

C

cancel() - Method in class net.dempsy.util.executor.AutoDisposeSingleThreadScheduler.Cancelable
Attempt to cancel the Runnable that was submitted to AutoDisposeSingleThreadScheduler.schedule(Runnable, long, TimeUnit)
clear() - Method in class net.dempsy.util.io.MessageBufferInput
Causes the MessageBufferInput.available() to return 0.
close() - Method in class net.dempsy.util.io.MessageBufferInput
Closing a ByteArrayInputStream has no effect.
close() - Method in class net.dempsy.util.io.MessageBufferOutput
Closing a ByteArrayOutputStream has no effect.
count - Variable in class net.dempsy.util.io.MessageBufferInput
The index one greater than the last valid character in the input stream buffer.

E

equals(String, String) - Static method in class net.dempsy.util.SafeString
 

G

getBuffer() - Method in class net.dempsy.util.io.MessageBufferInput
Returns the underlying byte[]
getBuffer() - Method in class net.dempsy.util.io.MessageBufferOutput
Returns the underlying byte[]
getLimit() - Method in class net.dempsy.util.io.MessageBufferInput
 
getPosition() - Method in class net.dempsy.util.io.MessageBufferInput
Returns the current position in the buffer where the next byte will be read from.
getPosition() - Method in class net.dempsy.util.io.MessageBufferOutput
Returns the current position in the buffer where the next byte will be written to.
grow() - Method in class net.dempsy.util.io.MessageBufferOutput
Doubles the internal buffer size while preserving the data

H

hashCode(String) - Static method in class net.dempsy.util.SafeString
 

I

isDone() - Method in class net.dempsy.util.executor.AutoDisposeSingleThreadScheduler.Cancelable
Is the Runnable that was submitted to AutoDisposeSingleThreadScheduler.schedule(Runnable, long, TimeUnit) comleted?

L

length - Variable in class net.dempsy.util.io.MessageBufferOutput
This is a cache for the length of the underlying byte[] to avoid constant dereferencing.

M

mark - Variable in class net.dempsy.util.io.MessageBufferInput
The currently marked position in the stream.
mark(int) - Method in class net.dempsy.util.io.MessageBufferInput
Set the current marked position in the stream.
markSupported() - Method in class net.dempsy.util.io.MessageBufferInput
Tests if this InputStream supports mark/reset.
MessageBufferInput - Class in net.dempsy.util.io
This is literally a copy of the ByteArrayInputStream from the runtime library except it's been modified in the following ways:
MessageBufferInput(byte[]) - Constructor for class net.dempsy.util.io.MessageBufferInput
Creates a MessageBufferInput so that it uses buf as its buffer array.
MessageBufferInput(byte[], int, int) - Constructor for class net.dempsy.util.io.MessageBufferInput
Creates ByteArrayInputStream that uses buf as its buffer array.
MessageBufferOutput - Class in net.dempsy.util.io
This is literally a copy of the ByteArrayOutputStream from the runtime library except it's been modified in the following ways:
MessageBufferOutput() - Constructor for class net.dempsy.util.io.MessageBufferOutput
Creates a new byte array output stream.
MessageBufferOutput(int) - Constructor for class net.dempsy.util.io.MessageBufferOutput
Creates a new byte array output stream, with a buffer capacity of the specified size, in bytes.

N

net.dempsy.util - package net.dempsy.util
 
net.dempsy.util.executor - package net.dempsy.util.executor
 
net.dempsy.util.io - package net.dempsy.util.io
 

O

objectDescription(Object) - Static method in class net.dempsy.util.SafeString
 

P

pos - Variable in class net.dempsy.util.io.MessageBufferInput
The index of the next character to read from the input stream buffer.
position - Variable in class net.dempsy.util.io.MessageBufferOutput
The number of valid bytes in the buffer.

R

read() - Method in class net.dempsy.util.io.MessageBufferInput
Reads the next byte of data from this input stream.
read(byte[], int, int) - Method in class net.dempsy.util.io.MessageBufferInput
Reads up to len bytes of data into an array of bytes from this input stream.
readByteArray() - Method in class net.dempsy.util.io.MessageBufferInput
 
readShort() - Method in class net.dempsy.util.io.MessageBufferInput
 
replace(byte[]) - Method in class net.dempsy.util.io.MessageBufferOutput
Completely replace the underlying buffer.
reset() - Method in class net.dempsy.util.io.MessageBufferInput
Resets the buffer to the marked position.
reset() - Method in class net.dempsy.util.io.MessageBufferOutput
Resets the count field of this byte array output stream to zero, so that all currently accumulated output in the output stream is discarded.

S

SafeString - Class in net.dempsy.util
 
SafeString() - Constructor for class net.dempsy.util.SafeString
 
schedule(Runnable, long, TimeUnit) - Method in class net.dempsy.util.executor.AutoDisposeSingleThreadScheduler
Schedule the given Runnable to run at the given time period from now.
setPosition(int) - Method in class net.dempsy.util.io.MessageBufferInput
Explicitly set the current position in the buffer.
setPosition(int) - Method in class net.dempsy.util.io.MessageBufferOutput
Explicitly set the current position in the buffer.
skip(long) - Method in class net.dempsy.util.io.MessageBufferInput
Skips n bytes of input from this input stream.

T

toByteArray() - Method in class net.dempsy.util.io.MessageBufferOutput
Creates a newly allocated byte array.
toString() - Method in class net.dempsy.util.io.MessageBufferOutput
Converts the buffer's contents into a string decoding bytes using the platform's default character set.
toString(String) - Method in class net.dempsy.util.io.MessageBufferOutput
Converts the buffer's contents into a string by decoding the bytes using the specified Charset name.

V

valueOf(Object) - Static method in class net.dempsy.util.SafeString
 
valueOfClass(Object) - Static method in class net.dempsy.util.SafeString
 

W

write(int) - Method in class net.dempsy.util.io.MessageBufferOutput
Writes the specified byte to this byte array output stream.
write(byte[], int, int) - Method in class net.dempsy.util.io.MessageBufferOutput
Writes len bytes from the specified byte array starting at offset off to this byte array output stream.
writeShort(short) - Method in class net.dempsy.util.io.MessageBufferOutput
 
writeTo(OutputStream) - Method in class net.dempsy.util.io.MessageBufferOutput
Writes the complete contents of this byte array output stream to the specified output stream argument, as if by calling the output stream's write method using out.write(buf, 0, count).
A B C E G H I L M N O P R S T V W 
Skip navigation links

Copyright © 2016. All Rights Reserved.