public class DateParameter extends Object implements ParameterHolder
| Constructor and Description |
|---|
DateParameter(long timestamp)
Represents a timestamp, constructed with time in millis since epoch
|
DateParameter(long timestamp,
Calendar cal) |
| Modifier and Type | Method and Description |
|---|---|
long |
length() |
int |
writeTo(OutputStream os,
int offset,
int maxWriteSize)
Write at most maxWriteSize, return the amont actually written
|
public DateParameter(long timestamp)
timestamp - the time in millis since epochpublic DateParameter(long timestamp,
Calendar cal)
public int writeTo(OutputStream os, int offset, int maxWriteSize) throws IOException
ParameterHolderwriteTo in interface ParameterHolderos - the stream to write tooffset - where to start writingmaxWriteSize - max number of bytes to writeIOException - when everything goes wrongpublic long length()
length in interface ParameterHolderCopyright © 2016. All rights reserved.