public class ANVLRecord extends LinkedList<Element> implements UTF8Bytes
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CRLF
An ANVL 'newline'.
|
static ANVLRecord |
EMPTY_ANVL_RECORD |
protected static String |
FOLD_PREFIX |
static long |
MAXIMUM_SIZE
Arbitrary upper bound on maximum size of ANVL Record.
|
static String |
MIMETYPE |
modCount| Constructor and Description |
|---|
ANVLRecord() |
ANVLRecord(Collection<? extends Element> c) |
ANVLRecord(int initialCapacity)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLabel(String l) |
boolean |
addLabelValue(String l,
String v) |
Map<String,String> |
asMap() |
ANVLRecord |
clone() |
int |
getLength() |
byte[] |
getUTF8Bytes() |
static boolean |
isCR(char c) |
static boolean |
isCROrLF(char c) |
static boolean |
isLF(char c) |
static ANVLRecord |
load(InputStream is)
Parses a single ANVLRecord from passed InputStream.
|
static ANVLRecord |
load(String s)
Parse passed String for an ANVL Record.
|
String |
toString() |
add, add, addAll, addAll, addFirst, addLast, clear, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAllfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subListpublic static final String MIMETYPE
public static final ANVLRecord EMPTY_ANVL_RECORD
public static final long MAXIMUM_SIZE
protected static final String CRLF
protected static final String FOLD_PREFIX
public ANVLRecord()
public ANVLRecord(Collection<? extends Element> c)
public ANVLRecord(int initialCapacity)
public boolean addLabel(String l)
public String toString()
toString in class AbstractCollection<Element>public ANVLRecord clone()
clone in class LinkedList<Element>public byte[] getUTF8Bytes()
throws UnsupportedEncodingException
getUTF8Bytes in interface UTF8BytesUnsupportedEncodingExceptionpublic static ANVLRecord load(InputStream is) throws IOException
is - InputStreamIOExceptionpublic static ANVLRecord load(String s) throws IOException
s - String with an ANVLRecord.IOExceptionpublic int getLength()
public static boolean isCROrLF(char c)
public static boolean isCR(char c)
public static boolean isLF(char c)
Copyright © 2015 The International Internet Preservation Consortium. All Rights Reserved.