Klasse CompressedWriter
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.CompressedWriter
abstraction of DataOutputStream
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
writeBoolean
(boolean v) void
writeByte
(int v) void
writeChars
(char[] name) Write the given name UTF8 encoded.void
writeCharsUsingLast
(char[] name) Writes the given char array and remember it.void
writeInt
(int v) void
writeIntInRange
(int v, int range) Write a number v which must be 0 Ungültige Eingabe: "<"= v Ungültige Eingabe: "<"range.void
writeIntWithHint
(int v, int[] typical) Writes v using a list of likely values "typical".void
writeLong
(long v) void
Writes the given String.void
writeStringUsingLast
(String name) Writes the given String.
-
Konstruktordetails
-
CompressedWriter
-
-
Methodendetails
-
writeBoolean
- Löst aus:
IOException
- Siehe auch:
-
writeByte
- Löst aus:
IOException
- Siehe auch:
-
writeLong
- Löst aus:
IOException
- Siehe auch:
-
writeInt
- Löst aus:
IOException
- Siehe auch:
-
writeChars
Write the given name UTF8 encoded.- Parameter:
name
- chars to write- Löst aus:
IOException
- Siehe auch:
-
writeIntWithHint
Writes v using a list of likely values "typical". If v is element of "typical" then encode v as an index. Otherwise encoded as typical.length and plain encoded v;- Parameter:
v
- the number to writetypical
- a list of most used values- Löst aus:
IOException
- Siehe auch:
-
writeIntInRange
Write a number v which must be 0 Ungültige Eingabe: "<"= v Ungültige Eingabe: "<"range. Otherwise IllegalArgumentException is thrown. Encodes only as many bytes as needed. I.e. skipping the high bytes.- Parameter:
v
- the number to write.range
- the maximal possible value of v + 1- Löst aus:
IOException
- Siehe auch:
-
writeStringUsingDictionary
Writes the given String. If the String was already written before its index in the dictionary is encoded as index+1. Otherwise a 0 index is encoded and then the String is encoded as UTF8 and stored into dictionary.- Parameter:
v
- the String to write- Löst aus:
IOException
- Siehe auch:
-
writeStringUsingLast
Writes the given String. Encoded like a char array using last string.- Parameter:
name
- the String to write.- Löst aus:
IOException
- Siehe auch:
-
writeCharsUsingLast
Writes the given char array and remember it. Encoded by writing the length of common leading chars with the last given array followed by the remaining chars using a dictionary. Works best if the names are written in binary sorted order.- Parameter:
name
- the char array to write- Löst aus:
IOException
- Siehe auch:
-