|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.japtproxy.misc.Util
public final class Util
Utility class.
| Field Summary | |
|---|---|
static int |
DEFAULT_BUFFER_SIZE
Buffer size that is used for all output buffers. |
static java.lang.String |
USER_AGENT
The user-agent string. |
static java.lang.String |
VERSION
The Japt-Proxy version. |
| Method Summary | |
|---|---|
static java.lang.String |
getMimetype(java.lang.String filename)
Returns a mime-type for a given file extension. |
static java.lang.String |
getRfc822DateFromTimestamp(long timestamp)
Returns a rfc822 compliant date from a given timestamp. |
static java.lang.String |
getSimpleDateFromTimestamp(long timestamp)
Returns a loggable date from a given timestamp. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VERSION
public static final java.lang.String USER_AGENT
public static final int DEFAULT_BUFFER_SIZE
| Method Detail |
|---|
public static java.lang.String getSimpleDateFromTimestamp(long timestamp)
timestamp - the timestamp to convert
public static java.lang.String getRfc822DateFromTimestamp(long timestamp)
timestamp - the timestamp to convert
public static java.lang.String getMimetype(java.lang.String filename)
extension - the file extension to get a mime-type for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||