diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000000..e69de29bb2 diff --git a/1.x/benchmarks/META-INF/MANIFEST.MF b/1.x/benchmarks/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..1a12ffb44d --- /dev/null +++ b/1.x/benchmarks/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_162 + diff --git a/1.x/benchmarks/allclasses-frame.html b/1.x/benchmarks/allclasses-frame.html new file mode 100644 index 0000000000..46e1fd7299 --- /dev/null +++ b/1.x/benchmarks/allclasses-frame.html @@ -0,0 +1,72 @@ + + + +
+ + +public class BufferCursorSeekBenchmark
+extends java.lang.Object
+Constructor and Description | +
---|
BufferCursorSeekBenchmark() |
+
Modifier and Type | +Method and Description | +
---|---|
static void |
+main(java.lang.String[] args) |
+
void |
+seekBackward() |
+
void |
+seekBeginning() |
+
void |
+seekEnd() |
+
void |
+seekForward() |
+
void |
+setup() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferCursorSeekBenchmark()+
public void setup() + throws java.io.IOException+
java.io.IOException
public void seekBeginning()+
public void seekEnd()+
public void seekForward()+
public void seekBackward()+
public static void main(java.lang.String[] args) + throws java.io.IOException, + org.openjdk.jmh.runner.RunnerException+
java.io.IOException
org.openjdk.jmh.runner.RunnerException
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.BufferSetup.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.BufferSetup.html new file mode 100644 index 0000000000..1738650ea5 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.BufferSetup.html @@ -0,0 +1,332 @@ + + + + + + +public abstract static class BufferPerformanceBench.BufferSetup +extends BufferPerformanceBench.BufferState+
Constructor and Description | +
---|
BufferSetup() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+dispose() |
+
BufferedSource |
+receive(byte[] bytes) |
+
BufferedSource |
+transmit(byte[] bytes) |
+
receive, releaseBuffers, transmit
public BufferedSource receive(byte[] bytes) + throws IOException+
IOException
public BufferedSource transmit(byte[] bytes) + throws IOException+
IOException
public void dispose() + throws IOException+
IOException
Copyright © 2015. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.BufferState.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.BufferState.html new file mode 100644 index 0000000000..4d27fead22 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.BufferState.html @@ -0,0 +1,334 @@ + + + + + + +public static class BufferPerformanceBench.BufferState +extends Object+
Constructor and Description | +
---|
BufferState() |
+
Modifier and Type | +Method and Description | +
---|---|
protected Buffer |
+receive(byte[] bytes,
+ int maxChunkSize)
+Fills up the receive buffer, hands off to process buffer and returns it for consuming.
+ |
+
void |
+releaseBuffers() |
+
protected BufferedSource |
+transmit(byte[] bytes,
+ int maxChunkSize)
+Fills up the process buffer, hands off to send buffer and returns it for consuming.
+ |
+
public void releaseBuffers() + throws IOException+
IOException
protected Buffer receive(byte[] bytes, + int maxChunkSize) + throws IOException+
IOException
protected BufferedSource transmit(byte[] bytes, + int maxChunkSize) + throws IOException+
IOException
Copyright © 2015. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.ColdBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.ColdBuffers.html new file mode 100644 index 0000000000..a78bb95271 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.ColdBuffers.html @@ -0,0 +1,317 @@ + + + + + + +public static class BufferPerformanceBench.ColdBuffers +extends BufferPerformanceBench.BufferSetup+
Constructor and Description | +
---|
ColdBuffers() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+lag() |
+
void |
+setupBench(BufferPerformanceBench bench) |
+
dispose, receive, transmit
receive, releaseBuffers, transmit
public void setupBench(BufferPerformanceBench bench)+
public void lag() + throws InterruptedException+
InterruptedException
Copyright © 2015. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.HotBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.HotBuffers.html new file mode 100644 index 0000000000..1ddff143c4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.HotBuffers.html @@ -0,0 +1,299 @@ + + + + + + +public static class BufferPerformanceBench.HotBuffers +extends BufferPerformanceBench.BufferSetup+
Constructor and Description | +
---|
HotBuffers() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+setupBench(BufferPerformanceBench bench) |
+
dispose, receive, transmit
receive, releaseBuffers, transmit
public void setupBench(BufferPerformanceBench bench)+
Copyright © 2015. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.html new file mode 100644 index 0000000000..fc54acfe21 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBench.html @@ -0,0 +1,487 @@ + + + + + + +public class BufferPerformanceBench +extends Object+
Modifier and Type | +Class and Description | +
---|---|
static class |
+BufferPerformanceBench.BufferSetup |
+
static class |
+BufferPerformanceBench.BufferState |
+
static class |
+BufferPerformanceBench.ColdBuffers |
+
static class |
+BufferPerformanceBench.HotBuffers |
+
Modifier and Type | +Field and Description | +
---|---|
static File |
+OriginPath |
+
Constructor and Description | +
---|
BufferPerformanceBench() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+storeRequestResponseData() |
+
void |
+thinkReadHot(BufferPerformanceBench.HotBuffers buffers) |
+
void |
+thinkWriteCold(BufferPerformanceBench.ColdBuffers buffers) |
+
void |
+threads16hot(BufferPerformanceBench.HotBuffers buffers) |
+
void |
+threads1hot(BufferPerformanceBench.HotBuffers buffers) |
+
void |
+threads2hot(BufferPerformanceBench.HotBuffers buffers) |
+
void |
+threads32hot(BufferPerformanceBench.HotBuffers buffers) |
+
void |
+threads4hot(BufferPerformanceBench.HotBuffers buffers) |
+
void |
+threads8hot(BufferPerformanceBench.HotBuffers buffers) |
+
public BufferPerformanceBench()+
public void threads1hot(BufferPerformanceBench.HotBuffers buffers) + throws IOException+
IOException
public void threads2hot(BufferPerformanceBench.HotBuffers buffers) + throws IOException+
IOException
public void threads4hot(BufferPerformanceBench.HotBuffers buffers) + throws IOException+
IOException
public void threads8hot(BufferPerformanceBench.HotBuffers buffers) + throws IOException+
IOException
public void threads16hot(BufferPerformanceBench.HotBuffers buffers) + throws IOException+
IOException
public void threads32hot(BufferPerformanceBench.HotBuffers buffers) + throws IOException+
IOException
public void thinkReadHot(BufferPerformanceBench.HotBuffers buffers) + throws IOException+
IOException
public void thinkWriteCold(BufferPerformanceBench.ColdBuffers buffers) + throws IOException+
IOException
public void storeRequestResponseData() + throws IOException+
IOException
Copyright © 2015. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.BufferSetup.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.BufferSetup.html new file mode 100644 index 0000000000..874840ac2b --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.BufferSetup.html @@ -0,0 +1,334 @@ + + + + + + +public abstract static class BufferPerformanceBenchmark.BufferSetup +extends BufferPerformanceBenchmark.BufferState+
Constructor and Description | +
---|
BufferSetup() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+dispose() |
+
BufferedSource |
+receive(byte[] bytes) |
+
BufferedSource |
+transmit(byte[] bytes) |
+
receive, releaseBuffers, transmit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferedSource receive(byte[] bytes) + throws java.io.IOException+
java.io.IOException
public BufferedSource transmit(byte[] bytes) + throws java.io.IOException+
java.io.IOException
public void dispose() + throws java.io.IOException+
java.io.IOException
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.BufferState.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.BufferState.html new file mode 100644 index 0000000000..0b61cae1e0 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.BufferState.html @@ -0,0 +1,336 @@ + + + + + + +public static class BufferPerformanceBenchmark.BufferState
+extends java.lang.Object
+Constructor and Description | +
---|
BufferState() |
+
Modifier and Type | +Method and Description | +
---|---|
protected Buffer |
+receive(byte[] bytes,
+ int maxChunkSize)
+Fills up the receive buffer, hands off to process buffer and returns it for consuming.
+ |
+
void |
+releaseBuffers() |
+
protected BufferedSource |
+transmit(byte[] bytes,
+ int maxChunkSize)
+Fills up the process buffer, hands off to send buffer and returns it for consuming.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void releaseBuffers() + throws java.io.IOException+
java.io.IOException
protected Buffer receive(byte[] bytes, + int maxChunkSize) + throws java.io.IOException+
java.io.IOException
protected BufferedSource transmit(byte[] bytes, + int maxChunkSize) + throws java.io.IOException+
java.io.IOException
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.ColdBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.ColdBuffers.html new file mode 100644 index 0000000000..3685c061d4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.ColdBuffers.html @@ -0,0 +1,323 @@ + + + + + + +public static class BufferPerformanceBenchmark.ColdBuffers +extends BufferPerformanceBenchmark.BufferSetup+
Constructor and Description | +
---|
ColdBuffers() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+lag() |
+
void |
+setupBench(BufferPerformanceBenchmark bench) |
+
dispose, receive, transmit
receive, releaseBuffers, transmit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setupBench(BufferPerformanceBenchmark bench)+
public void lag() + throws java.lang.InterruptedException+
java.lang.InterruptedException
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.HotBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.HotBuffers.html new file mode 100644 index 0000000000..39e50948e4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.HotBuffers.html @@ -0,0 +1,305 @@ + + + + + + +public static class BufferPerformanceBenchmark.HotBuffers +extends BufferPerformanceBenchmark.BufferSetup+
Constructor and Description | +
---|
HotBuffers() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+setupBench(BufferPerformanceBenchmark bench) |
+
dispose, receive, transmit
receive, releaseBuffers, transmit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setupBench(BufferPerformanceBenchmark bench)+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.html new file mode 100644 index 0000000000..f98b91f7cb --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/BufferPerformanceBenchmark.html @@ -0,0 +1,493 @@ + + + + + + +public class BufferPerformanceBenchmark
+extends java.lang.Object
+Modifier and Type | +Class and Description | +
---|---|
static class |
+BufferPerformanceBenchmark.BufferSetup |
+
static class |
+BufferPerformanceBenchmark.BufferState |
+
static class |
+BufferPerformanceBenchmark.ColdBuffers |
+
static class |
+BufferPerformanceBenchmark.HotBuffers |
+
Modifier and Type | +Field and Description | +
---|---|
static java.io.File |
+OriginPath |
+
Constructor and Description | +
---|
BufferPerformanceBenchmark() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+storeRequestResponseData() |
+
void |
+thinkReadHot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
void |
+thinkWriteCold(BufferPerformanceBenchmark.ColdBuffers buffers) |
+
void |
+threads16hot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
void |
+threads1hot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
void |
+threads2hot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
void |
+threads32hot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
void |
+threads4hot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
void |
+threads8hot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferPerformanceBenchmark()+
public void threads1hot(BufferPerformanceBenchmark.HotBuffers buffers) + throws java.io.IOException+
java.io.IOException
public void threads2hot(BufferPerformanceBenchmark.HotBuffers buffers) + throws java.io.IOException+
java.io.IOException
public void threads4hot(BufferPerformanceBenchmark.HotBuffers buffers) + throws java.io.IOException+
java.io.IOException
public void threads8hot(BufferPerformanceBenchmark.HotBuffers buffers) + throws java.io.IOException+
java.io.IOException
public void threads16hot(BufferPerformanceBenchmark.HotBuffers buffers) + throws java.io.IOException+
java.io.IOException
public void threads32hot(BufferPerformanceBenchmark.HotBuffers buffers) + throws java.io.IOException+
java.io.IOException
public void thinkReadHot(BufferPerformanceBenchmark.HotBuffers buffers) + throws java.io.IOException+
java.io.IOException
public void thinkWriteCold(BufferPerformanceBenchmark.ColdBuffers buffers) + throws java.io.IOException+
java.io.IOException
public void storeRequestResponseData() + throws java.io.IOException+
java.io.IOException
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/GetByteBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/GetByteBenchmark.html new file mode 100644 index 0000000000..af821c1d64 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/GetByteBenchmark.html @@ -0,0 +1,341 @@ + + + + + + +public class GetByteBenchmark
+extends java.lang.Object
+Constructor and Description | +
---|
GetByteBenchmark() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+getByteBeginning() |
+
void |
+getByteEnd() |
+
void |
+getByteMiddle() |
+
static void |
+main(java.lang.String[] args) |
+
void |
+setup() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void setup() + throws java.io.IOException+
java.io.IOException
public void getByteBeginning()+
public void getByteEnd()+
public void getByteMiddle()+
public static void main(java.lang.String[] args) + throws java.io.IOException, + org.openjdk.jmh.runner.RunnerException+
java.io.IOException
org.openjdk.jmh.runner.RunnerException
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/IndexOfElementBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/IndexOfElementBenchmark.html new file mode 100644 index 0000000000..bb8e5ae516 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/IndexOfElementBenchmark.html @@ -0,0 +1,356 @@ + + + + + + +public class IndexOfElementBenchmark
+extends java.lang.Object
+Constructor and Description | +
---|
IndexOfElementBenchmark() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+indexOfByte() |
+
void |
+indexOfByteString() |
+
void |
+indexOfElement() |
+
static void |
+main(java.lang.String[] args) |
+
void |
+setup() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IndexOfElementBenchmark()+
public void setup() + throws java.io.IOException+
java.io.IOException
public void indexOfByte() + throws java.io.IOException+
java.io.IOException
public void indexOfByteString() + throws java.io.IOException+
java.io.IOException
public void indexOfElement() + throws java.io.IOException+
java.io.IOException
public static void main(java.lang.String[] args) + throws java.io.IOException, + org.openjdk.jmh.runner.RunnerException+
java.io.IOException
org.openjdk.jmh.runner.RunnerException
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferCursorSeekBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferCursorSeekBenchmark.html new file mode 100644 index 0000000000..6f53c1ffe4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferCursorSeekBenchmark.html @@ -0,0 +1,178 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferCursorSeekBenchmark_jmh |
+
class |
+BufferCursorSeekBenchmark_jmh_B1 |
+
class |
+BufferCursorSeekBenchmark_jmh_B2 |
+
class |
+BufferCursorSeekBenchmark_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.BufferSetup.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.BufferSetup.html new file mode 100644 index 0000000000..8e662b2adc --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.BufferSetup.html @@ -0,0 +1,153 @@ + + + + + + +Modifier and Type | +Class and Description | +
---|---|
static class |
+BufferPerformanceBench.ColdBuffers |
+
static class |
+BufferPerformanceBench.HotBuffers |
+
Copyright © 2015. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.BufferState.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.BufferState.html new file mode 100644 index 0000000000..d40a0e620b --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.BufferState.html @@ -0,0 +1,157 @@ + + + + + + +Modifier and Type | +Class and Description | +
---|---|
static class |
+BufferPerformanceBench.BufferSetup |
+
static class |
+BufferPerformanceBench.ColdBuffers |
+
static class |
+BufferPerformanceBench.HotBuffers |
+
Copyright © 2015. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.ColdBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.ColdBuffers.html new file mode 100644 index 0000000000..77e7d2852e --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.ColdBuffers.html @@ -0,0 +1,149 @@ + + + + + + +Modifier and Type | +Method and Description | +
---|---|
void |
+BufferPerformanceBench.thinkWriteCold(BufferPerformanceBench.ColdBuffers buffers) |
+
Copyright © 2015. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.HotBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.HotBuffers.html new file mode 100644 index 0000000000..8170e546ac --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.HotBuffers.html @@ -0,0 +1,173 @@ + + + + + + +Modifier and Type | +Method and Description | +
---|---|
void |
+BufferPerformanceBench.thinkReadHot(BufferPerformanceBench.HotBuffers buffers) |
+
void |
+BufferPerformanceBench.threads16hot(BufferPerformanceBench.HotBuffers buffers) |
+
void |
+BufferPerformanceBench.threads1hot(BufferPerformanceBench.HotBuffers buffers) |
+
void |
+BufferPerformanceBench.threads2hot(BufferPerformanceBench.HotBuffers buffers) |
+
void |
+BufferPerformanceBench.threads32hot(BufferPerformanceBench.HotBuffers buffers) |
+
void |
+BufferPerformanceBench.threads4hot(BufferPerformanceBench.HotBuffers buffers) |
+
void |
+BufferPerformanceBench.threads8hot(BufferPerformanceBench.HotBuffers buffers) |
+
Copyright © 2015. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.html new file mode 100644 index 0000000000..834496ad7a --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBench.html @@ -0,0 +1,153 @@ + + + + + + +Modifier and Type | +Method and Description | +
---|---|
void |
+BufferPerformanceBench.ColdBuffers.setupBench(BufferPerformanceBench bench) |
+
void |
+BufferPerformanceBench.HotBuffers.setupBench(BufferPerformanceBench bench) |
+
Copyright © 2015. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.BufferSetup.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.BufferSetup.html new file mode 100644 index 0000000000..48559e9cbd --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.BufferSetup.html @@ -0,0 +1,220 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks | ++ |
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
static class |
+BufferPerformanceBenchmark.ColdBuffers |
+
static class |
+BufferPerformanceBenchmark.HotBuffers |
+
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh |
+
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B1 |
+
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B2 |
+
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B3 |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh_B1 |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh_B2 |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.BufferState.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.BufferState.html new file mode 100644 index 0000000000..c7d7c04197 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.BufferState.html @@ -0,0 +1,224 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks | ++ |
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
static class |
+BufferPerformanceBenchmark.BufferSetup |
+
static class |
+BufferPerformanceBenchmark.ColdBuffers |
+
static class |
+BufferPerformanceBenchmark.HotBuffers |
+
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh |
+
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B1 |
+
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B2 |
+
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B3 |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh_B1 |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh_B2 |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.ColdBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.ColdBuffers.html new file mode 100644 index 0000000000..cbfecb27a4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.ColdBuffers.html @@ -0,0 +1,200 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks | ++ |
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+BufferPerformanceBenchmark.thinkWriteCold(BufferPerformanceBenchmark.ColdBuffers buffers) |
+
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh |
+
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B1 |
+
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B2 |
+
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.HotBuffers.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.HotBuffers.html new file mode 100644 index 0000000000..814cd23547 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.HotBuffers.html @@ -0,0 +1,224 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks | ++ |
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+BufferPerformanceBenchmark.thinkReadHot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
void |
+BufferPerformanceBenchmark.threads16hot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
void |
+BufferPerformanceBenchmark.threads1hot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
void |
+BufferPerformanceBenchmark.threads2hot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
void |
+BufferPerformanceBenchmark.threads32hot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
void |
+BufferPerformanceBenchmark.threads4hot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
void |
+BufferPerformanceBenchmark.threads8hot(BufferPerformanceBenchmark.HotBuffers buffers) |
+
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_HotBuffers_jmh |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh_B1 |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh_B2 |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.html new file mode 100644 index 0000000000..db13d30be2 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/BufferPerformanceBenchmark.html @@ -0,0 +1,204 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks | ++ |
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+BufferPerformanceBenchmark.ColdBuffers.setupBench(BufferPerformanceBenchmark bench) |
+
void |
+BufferPerformanceBenchmark.HotBuffers.setupBench(BufferPerformanceBenchmark bench) |
+
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_jmh |
+
class |
+BufferPerformanceBenchmark_jmh_B1 |
+
class |
+BufferPerformanceBenchmark_jmh_B2 |
+
class |
+BufferPerformanceBenchmark_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/GetByteBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/GetByteBenchmark.html new file mode 100644 index 0000000000..15236930bc --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/GetByteBenchmark.html @@ -0,0 +1,178 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+GetByteBenchmark_jmh |
+
class |
+GetByteBenchmark_jmh_B1 |
+
class |
+GetByteBenchmark_jmh_B2 |
+
class |
+GetByteBenchmark_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/IndexOfElementBenchmark.html b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/IndexOfElementBenchmark.html new file mode 100644 index 0000000000..cca89007e7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/class-use/IndexOfElementBenchmark.html @@ -0,0 +1,178 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+IndexOfElementBenchmark_jmh |
+
class |
+IndexOfElementBenchmark_jmh_B1 |
+
class |
+IndexOfElementBenchmark_jmh_B2 |
+
class |
+IndexOfElementBenchmark_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh.html new file mode 100644 index 0000000000..dcf3ac791b --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh.html @@ -0,0 +1,281 @@ + + + + + + +public class BufferCursorSeekBenchmark_jmh +extends BufferCursorSeekBenchmark_jmh_B3+
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
Constructor and Description | +
---|
BufferCursorSeekBenchmark_jmh() |
+
main, seekBackward, seekBeginning, seekEnd, seekForward, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B1.html new file mode 100644 index 0000000000..6f44769a92 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B1.html @@ -0,0 +1,255 @@ + + + + + + +public class BufferCursorSeekBenchmark_jmh_B1 +extends BufferCursorSeekBenchmark+
Constructor and Description | +
---|
BufferCursorSeekBenchmark_jmh_B1() |
+
main, seekBackward, seekBeginning, seekEnd, seekForward, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B2.html new file mode 100644 index 0000000000..4b9cf1c4de --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B2.html @@ -0,0 +1,478 @@ + + + + + + +public class BufferCursorSeekBenchmark_jmh_B2 +extends BufferCursorSeekBenchmark_jmh_B1+
Modifier and Type | +Field and Description | +
---|---|
boolean |
+readyInvocation |
+
boolean |
+readyIteration |
+
boolean |
+readyTrial |
+
int |
+setupInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> |
+setupInvocationMutexUpdater |
+
int |
+setupIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> |
+setupIterationMutexUpdater |
+
int |
+setupTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> |
+setupTrialMutexUpdater |
+
int |
+tearInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> |
+tearInvocationMutexUpdater |
+
int |
+tearIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> |
+tearIterationMutexUpdater |
+
int |
+tearTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> |
+tearTrialMutexUpdater |
+
Constructor and Description | +
---|
BufferCursorSeekBenchmark_jmh_B2() |
+
main, seekBackward, seekBeginning, seekEnd, seekForward, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public volatile int setupTrialMutex+
public volatile int tearTrialMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> setupTrialMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> tearTrialMutexUpdater+
public volatile int setupIterationMutex+
public volatile int tearIterationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> setupIterationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> tearIterationMutexUpdater+
public volatile int setupInvocationMutex+
public volatile int tearInvocationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> setupInvocationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> tearInvocationMutexUpdater+
public volatile boolean readyTrial+
public volatile boolean readyIteration+
public volatile boolean readyInvocation+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B3.html new file mode 100644 index 0000000000..e831be47b4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_jmh_B3.html @@ -0,0 +1,280 @@ + + + + + + +public class BufferCursorSeekBenchmark_jmh_B3 +extends BufferCursorSeekBenchmark_jmh_B2+
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
Constructor and Description | +
---|
BufferCursorSeekBenchmark_jmh_B3() |
+
main, seekBackward, seekBeginning, seekEnd, seekForward, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekBackward.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekBackward.html new file mode 100644 index 0000000000..0450873e3a --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekBackward.html @@ -0,0 +1,445 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class BufferCursorSeekBenchmark_seekBackward
+extends java.lang.Object
+Constructor and Description | +
---|
BufferCursorSeekBenchmark_seekBackward() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+seekBackward_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+seekBackward_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+seekBackward_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+seekBackward_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+seekBackward_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+seekBackward_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+seekBackward_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+seekBackward_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferCursorSeekBenchmark_seekBackward()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> seekBackward_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekBackward_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> seekBackward_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekBackward_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> seekBackward_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekBackward_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> seekBackward_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekBackward_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekBeginning.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekBeginning.html new file mode 100644 index 0000000000..b4ae18ee4d --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekBeginning.html @@ -0,0 +1,445 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class BufferCursorSeekBenchmark_seekBeginning
+extends java.lang.Object
+Constructor and Description | +
---|
BufferCursorSeekBenchmark_seekBeginning() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+seekBeginning_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+seekBeginning_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+seekBeginning_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+seekBeginning_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+seekBeginning_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+seekBeginning_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+seekBeginning_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+seekBeginning_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferCursorSeekBenchmark_seekBeginning()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> seekBeginning_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekBeginning_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> seekBeginning_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekBeginning_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> seekBeginning_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekBeginning_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> seekBeginning_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekBeginning_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekEnd.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekEnd.html new file mode 100644 index 0000000000..c53ba210b1 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekEnd.html @@ -0,0 +1,445 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class BufferCursorSeekBenchmark_seekEnd
+extends java.lang.Object
+Constructor and Description | +
---|
BufferCursorSeekBenchmark_seekEnd() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+seekEnd_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+seekEnd_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+seekEnd_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+seekEnd_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+seekEnd_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+seekEnd_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+seekEnd_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+seekEnd_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferCursorSeekBenchmark_seekEnd()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> seekEnd_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekEnd_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> seekEnd_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekEnd_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> seekEnd_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekEnd_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> seekEnd_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekEnd_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekForward.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekForward.html new file mode 100644 index 0000000000..6970a3db9e --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferCursorSeekBenchmark_seekForward.html @@ -0,0 +1,445 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class BufferCursorSeekBenchmark_seekForward
+extends java.lang.Object
+Constructor and Description | +
---|
BufferCursorSeekBenchmark_seekForward() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+seekForward_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+seekForward_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+seekForward_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+seekForward_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+seekForward_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+seekForward_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+seekForward_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+seekForward_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferCursorSeekBenchmark_seekForward()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> seekForward_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekForward_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> seekForward_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekForward_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> seekForward_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekForward_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> seekForward_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void seekForward_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh.html new file mode 100644 index 0000000000..5d7f2643a9 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh.html @@ -0,0 +1,305 @@ + + + + + + +public class BufferPerformanceBenchmark_ColdBuffers_jmh +extends BufferPerformanceBenchmark_ColdBuffers_jmh_B3+
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
Constructor and Description | +
---|
BufferPerformanceBenchmark_ColdBuffers_jmh() |
+
lag, setupBench
dispose, receive, transmit
receive, releaseBuffers, transmit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B1.html new file mode 100644 index 0000000000..0a6578626d --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B1.html @@ -0,0 +1,279 @@ + + + + + + +public class BufferPerformanceBenchmark_ColdBuffers_jmh_B1 +extends BufferPerformanceBenchmark.ColdBuffers+
Constructor and Description | +
---|
BufferPerformanceBenchmark_ColdBuffers_jmh_B1() |
+
lag, setupBench
dispose, receive, transmit
receive, releaseBuffers, transmit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B2.html new file mode 100644 index 0000000000..591c8892c3 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B2.html @@ -0,0 +1,502 @@ + + + + + + +public class BufferPerformanceBenchmark_ColdBuffers_jmh_B2 +extends BufferPerformanceBenchmark_ColdBuffers_jmh_B1+
Modifier and Type | +Field and Description | +
---|---|
boolean |
+readyInvocation |
+
boolean |
+readyIteration |
+
boolean |
+readyTrial |
+
int |
+setupInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> |
+setupInvocationMutexUpdater |
+
int |
+setupIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> |
+setupIterationMutexUpdater |
+
int |
+setupTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> |
+setupTrialMutexUpdater |
+
int |
+tearInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> |
+tearInvocationMutexUpdater |
+
int |
+tearIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> |
+tearIterationMutexUpdater |
+
int |
+tearTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> |
+tearTrialMutexUpdater |
+
Constructor and Description | +
---|
BufferPerformanceBenchmark_ColdBuffers_jmh_B2() |
+
lag, setupBench
dispose, receive, transmit
receive, releaseBuffers, transmit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public volatile int setupTrialMutex+
public volatile int tearTrialMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> setupTrialMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> tearTrialMutexUpdater+
public volatile int setupIterationMutex+
public volatile int tearIterationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> setupIterationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> tearIterationMutexUpdater+
public volatile int setupInvocationMutex+
public volatile int tearInvocationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> setupInvocationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> tearInvocationMutexUpdater+
public boolean readyTrial+
public boolean readyIteration+
public boolean readyInvocation+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B3.html new file mode 100644 index 0000000000..7af8f5f10b --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_ColdBuffers_jmh_B3.html @@ -0,0 +1,304 @@ + + + + + + +public class BufferPerformanceBenchmark_ColdBuffers_jmh_B3 +extends BufferPerformanceBenchmark_ColdBuffers_jmh_B2+
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
Constructor and Description | +
---|
BufferPerformanceBenchmark_ColdBuffers_jmh_B3() |
+
lag, setupBench
dispose, receive, transmit
receive, releaseBuffers, transmit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh.html new file mode 100644 index 0000000000..b0820810ea --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh.html @@ -0,0 +1,305 @@ + + + + + + +public class BufferPerformanceBenchmark_HotBuffers_jmh +extends BufferPerformanceBenchmark_HotBuffers_jmh_B3+
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
Constructor and Description | +
---|
BufferPerformanceBenchmark_HotBuffers_jmh() |
+
setupBench
dispose, receive, transmit
receive, releaseBuffers, transmit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B1.html new file mode 100644 index 0000000000..94476dfaf4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B1.html @@ -0,0 +1,279 @@ + + + + + + +public class BufferPerformanceBenchmark_HotBuffers_jmh_B1 +extends BufferPerformanceBenchmark.HotBuffers+
Constructor and Description | +
---|
BufferPerformanceBenchmark_HotBuffers_jmh_B1() |
+
setupBench
dispose, receive, transmit
receive, releaseBuffers, transmit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B2.html new file mode 100644 index 0000000000..29c870c9f9 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B2.html @@ -0,0 +1,502 @@ + + + + + + +public class BufferPerformanceBenchmark_HotBuffers_jmh_B2 +extends BufferPerformanceBenchmark_HotBuffers_jmh_B1+
Modifier and Type | +Field and Description | +
---|---|
boolean |
+readyInvocation |
+
boolean |
+readyIteration |
+
boolean |
+readyTrial |
+
int |
+setupInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> |
+setupInvocationMutexUpdater |
+
int |
+setupIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> |
+setupIterationMutexUpdater |
+
int |
+setupTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> |
+setupTrialMutexUpdater |
+
int |
+tearInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> |
+tearInvocationMutexUpdater |
+
int |
+tearIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> |
+tearIterationMutexUpdater |
+
int |
+tearTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> |
+tearTrialMutexUpdater |
+
Constructor and Description | +
---|
BufferPerformanceBenchmark_HotBuffers_jmh_B2() |
+
setupBench
dispose, receive, transmit
receive, releaseBuffers, transmit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public volatile int setupTrialMutex+
public volatile int tearTrialMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> setupTrialMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> tearTrialMutexUpdater+
public volatile int setupIterationMutex+
public volatile int tearIterationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> setupIterationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> tearIterationMutexUpdater+
public volatile int setupInvocationMutex+
public volatile int tearInvocationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> setupInvocationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> tearInvocationMutexUpdater+
public boolean readyTrial+
public boolean readyIteration+
public boolean readyInvocation+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B3.html new file mode 100644 index 0000000000..07b3774323 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_HotBuffers_jmh_B3.html @@ -0,0 +1,304 @@ + + + + + + +public class BufferPerformanceBenchmark_HotBuffers_jmh_B3 +extends BufferPerformanceBenchmark_HotBuffers_jmh_B2+
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
Constructor and Description | +
---|
BufferPerformanceBenchmark_HotBuffers_jmh_B3() |
+
setupBench
dispose, receive, transmit
receive, releaseBuffers, transmit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_cold.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_cold.html new file mode 100644 index 0000000000..9cecffb6a2 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_cold.html @@ -0,0 +1,565 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class BufferPerformanceBenchmark_cold
+extends java.lang.Object
+Constructor and Description | +
---|
BufferPerformanceBenchmark_cold() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+cold_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+cold_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+cold_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+cold_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+thinkReadHot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+thinkReadHot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+thinkReadHot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+thinkReadHot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+thinkWriteCold_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+thinkWriteCold_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+thinkWriteCold_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+thinkWriteCold_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferPerformanceBenchmark_cold()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> cold_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void thinkReadHot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public void thinkWriteCold_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> cold_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void thinkReadHot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public void thinkWriteCold_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> cold_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void thinkReadHot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public void thinkWriteCold_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> cold_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void thinkReadHot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public void thinkWriteCold_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh.html new file mode 100644 index 0000000000..fbbbaabcb6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh.html @@ -0,0 +1,303 @@ + + + + + + +public class BufferPerformanceBenchmark_jmh +extends BufferPerformanceBenchmark_jmh_B3+
BufferPerformanceBenchmark.BufferSetup, BufferPerformanceBenchmark.BufferState, BufferPerformanceBenchmark.ColdBuffers, BufferPerformanceBenchmark.HotBuffers
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
OriginPath
Constructor and Description | +
---|
BufferPerformanceBenchmark_jmh() |
+
storeRequestResponseData, thinkReadHot, thinkWriteCold, threads16hot, threads1hot, threads2hot, threads32hot, threads4hot, threads8hot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B1.html new file mode 100644 index 0000000000..2225f44880 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B1.html @@ -0,0 +1,285 @@ + + + + + + +public class BufferPerformanceBenchmark_jmh_B1 +extends BufferPerformanceBenchmark+
BufferPerformanceBenchmark.BufferSetup, BufferPerformanceBenchmark.BufferState, BufferPerformanceBenchmark.ColdBuffers, BufferPerformanceBenchmark.HotBuffers
OriginPath
Constructor and Description | +
---|
BufferPerformanceBenchmark_jmh_B1() |
+
storeRequestResponseData, thinkReadHot, thinkWriteCold, threads16hot, threads1hot, threads2hot, threads32hot, threads4hot, threads8hot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B2.html new file mode 100644 index 0000000000..943d853705 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B2.html @@ -0,0 +1,500 @@ + + + + + + +public class BufferPerformanceBenchmark_jmh_B2 +extends BufferPerformanceBenchmark_jmh_B1+
BufferPerformanceBenchmark.BufferSetup, BufferPerformanceBenchmark.BufferState, BufferPerformanceBenchmark.ColdBuffers, BufferPerformanceBenchmark.HotBuffers
Modifier and Type | +Field and Description | +
---|---|
boolean |
+readyInvocation |
+
boolean |
+readyIteration |
+
boolean |
+readyTrial |
+
int |
+setupInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> |
+setupInvocationMutexUpdater |
+
int |
+setupIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> |
+setupIterationMutexUpdater |
+
int |
+setupTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> |
+setupTrialMutexUpdater |
+
int |
+tearInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> |
+tearInvocationMutexUpdater |
+
int |
+tearIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> |
+tearIterationMutexUpdater |
+
int |
+tearTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> |
+tearTrialMutexUpdater |
+
OriginPath
Constructor and Description | +
---|
BufferPerformanceBenchmark_jmh_B2() |
+
storeRequestResponseData, thinkReadHot, thinkWriteCold, threads16hot, threads1hot, threads2hot, threads32hot, threads4hot, threads8hot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public volatile int setupTrialMutex+
public volatile int tearTrialMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> setupTrialMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> tearTrialMutexUpdater+
public volatile int setupIterationMutex+
public volatile int tearIterationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> setupIterationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> tearIterationMutexUpdater+
public volatile int setupInvocationMutex+
public volatile int tearInvocationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> setupInvocationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> tearInvocationMutexUpdater+
public volatile boolean readyTrial+
public volatile boolean readyIteration+
public volatile boolean readyInvocation+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B3.html new file mode 100644 index 0000000000..fea942357f --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_jmh_B3.html @@ -0,0 +1,302 @@ + + + + + + +public class BufferPerformanceBenchmark_jmh_B3 +extends BufferPerformanceBenchmark_jmh_B2+
BufferPerformanceBenchmark.BufferSetup, BufferPerformanceBenchmark.BufferState, BufferPerformanceBenchmark.ColdBuffers, BufferPerformanceBenchmark.HotBuffers
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
OriginPath
Constructor and Description | +
---|
BufferPerformanceBenchmark_jmh_B3() |
+
storeRequestResponseData, thinkReadHot, thinkWriteCold, threads16hot, threads1hot, threads2hot, threads32hot, threads4hot, threads8hot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads16hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads16hot.html new file mode 100644 index 0000000000..5991225e21 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads16hot.html @@ -0,0 +1,453 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class BufferPerformanceBenchmark_threads16hot
+extends java.lang.Object
+Constructor and Description | +
---|
BufferPerformanceBenchmark_threads16hot() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+threads16hot_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads16hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+threads16hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+threads16hot_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+threads16hot_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads16hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+threads16hot_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads16hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferPerformanceBenchmark_threads16hot()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> threads16hot_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads16hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> threads16hot_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads16hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> threads16hot_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads16hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> threads16hot_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads16hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads1hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads1hot.html new file mode 100644 index 0000000000..54c8a899f9 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads1hot.html @@ -0,0 +1,453 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class BufferPerformanceBenchmark_threads1hot
+extends java.lang.Object
+Constructor and Description | +
---|
BufferPerformanceBenchmark_threads1hot() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+threads1hot_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads1hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+threads1hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+threads1hot_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+threads1hot_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads1hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+threads1hot_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads1hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferPerformanceBenchmark_threads1hot()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> threads1hot_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads1hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> threads1hot_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads1hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> threads1hot_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads1hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> threads1hot_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads1hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads2hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads2hot.html new file mode 100644 index 0000000000..3568ff3e5e --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads2hot.html @@ -0,0 +1,453 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class BufferPerformanceBenchmark_threads2hot
+extends java.lang.Object
+Constructor and Description | +
---|
BufferPerformanceBenchmark_threads2hot() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+threads2hot_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads2hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+threads2hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+threads2hot_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+threads2hot_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads2hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+threads2hot_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads2hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferPerformanceBenchmark_threads2hot()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> threads2hot_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads2hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> threads2hot_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads2hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> threads2hot_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads2hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> threads2hot_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads2hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads32hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads32hot.html new file mode 100644 index 0000000000..b4c871f138 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads32hot.html @@ -0,0 +1,453 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class BufferPerformanceBenchmark_threads32hot
+extends java.lang.Object
+Constructor and Description | +
---|
BufferPerformanceBenchmark_threads32hot() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+threads32hot_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads32hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+threads32hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+threads32hot_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+threads32hot_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads32hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+threads32hot_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads32hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferPerformanceBenchmark_threads32hot()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> threads32hot_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads32hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> threads32hot_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads32hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> threads32hot_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads32hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> threads32hot_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads32hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads4hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads4hot.html new file mode 100644 index 0000000000..070138c5b4 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads4hot.html @@ -0,0 +1,453 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class BufferPerformanceBenchmark_threads4hot
+extends java.lang.Object
+Constructor and Description | +
---|
BufferPerformanceBenchmark_threads4hot() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+threads4hot_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads4hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+threads4hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+threads4hot_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+threads4hot_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads4hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+threads4hot_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads4hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferPerformanceBenchmark_threads4hot()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> threads4hot_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads4hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> threads4hot_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads4hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> threads4hot_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads4hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> threads4hot_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads4hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads8hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads8hot.html new file mode 100644 index 0000000000..d7b5ad52e6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/BufferPerformanceBenchmark_threads8hot.html @@ -0,0 +1,453 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class BufferPerformanceBenchmark_threads8hot
+extends java.lang.Object
+Constructor and Description | +
---|
BufferPerformanceBenchmark_threads8hot() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+threads8hot_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads8hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+threads8hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+threads8hot_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+threads8hot_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads8hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+threads8hot_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+threads8hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BufferPerformanceBenchmark_threads8hot()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> threads8hot_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads8hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> threads8hot_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads8hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> threads8hot_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads8hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> threads8hot_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void threads8hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1, + BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteBeginning.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteBeginning.html new file mode 100644 index 0000000000..7f709d11b0 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteBeginning.html @@ -0,0 +1,445 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class GetByteBenchmark_getByteBeginning
+extends java.lang.Object
+Constructor and Description | +
---|
GetByteBenchmark_getByteBeginning() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+getByteBeginning_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+getByteBeginning_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+getByteBeginning_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+getByteBeginning_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+getByteBeginning_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+getByteBeginning_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+getByteBeginning_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+getByteBeginning_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public GetByteBenchmark_getByteBeginning()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> getByteBeginning_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void getByteBeginning_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + GetByteBenchmark_jmh l_getbytebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> getByteBeginning_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void getByteBeginning_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + GetByteBenchmark_jmh l_getbytebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> getByteBeginning_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void getByteBeginning_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + GetByteBenchmark_jmh l_getbytebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> getByteBeginning_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void getByteBeginning_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + GetByteBenchmark_jmh l_getbytebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteEnd.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteEnd.html new file mode 100644 index 0000000000..a2beea50e7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteEnd.html @@ -0,0 +1,445 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class GetByteBenchmark_getByteEnd
+extends java.lang.Object
+Constructor and Description | +
---|
GetByteBenchmark_getByteEnd() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+getByteEnd_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+getByteEnd_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+getByteEnd_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+getByteEnd_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+getByteEnd_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+getByteEnd_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+getByteEnd_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+getByteEnd_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public GetByteBenchmark_getByteEnd()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> getByteEnd_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void getByteEnd_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + GetByteBenchmark_jmh l_getbytebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> getByteEnd_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void getByteEnd_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + GetByteBenchmark_jmh l_getbytebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> getByteEnd_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void getByteEnd_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + GetByteBenchmark_jmh l_getbytebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> getByteEnd_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void getByteEnd_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + GetByteBenchmark_jmh l_getbytebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteMiddle.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteMiddle.html new file mode 100644 index 0000000000..d2f26603da --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_getByteMiddle.html @@ -0,0 +1,445 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class GetByteBenchmark_getByteMiddle
+extends java.lang.Object
+Constructor and Description | +
---|
GetByteBenchmark_getByteMiddle() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+getByteMiddle_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+getByteMiddle_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+getByteMiddle_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+getByteMiddle_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+getByteMiddle_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+getByteMiddle_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+getByteMiddle_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+getByteMiddle_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public GetByteBenchmark_getByteMiddle()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> getByteMiddle_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void getByteMiddle_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + GetByteBenchmark_jmh l_getbytebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> getByteMiddle_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void getByteMiddle_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + GetByteBenchmark_jmh l_getbytebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> getByteMiddle_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void getByteMiddle_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + GetByteBenchmark_jmh l_getbytebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> getByteMiddle_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void getByteMiddle_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + GetByteBenchmark_jmh l_getbytebenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh.html new file mode 100644 index 0000000000..67101884df --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh.html @@ -0,0 +1,281 @@ + + + + + + +public class GetByteBenchmark_jmh +extends GetByteBenchmark_jmh_B3+
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
Constructor and Description | +
---|
GetByteBenchmark_jmh() |
+
getByteBeginning, getByteEnd, getByteMiddle, main, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B1.html new file mode 100644 index 0000000000..1299fe497c --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B1.html @@ -0,0 +1,255 @@ + + + + + + +public class GetByteBenchmark_jmh_B1 +extends GetByteBenchmark+
Constructor and Description | +
---|
GetByteBenchmark_jmh_B1() |
+
getByteBeginning, getByteEnd, getByteMiddle, main, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B2.html new file mode 100644 index 0000000000..a80f1ce45a --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B2.html @@ -0,0 +1,478 @@ + + + + + + +public class GetByteBenchmark_jmh_B2 +extends GetByteBenchmark_jmh_B1+
Modifier and Type | +Field and Description | +
---|---|
boolean |
+readyInvocation |
+
boolean |
+readyIteration |
+
boolean |
+readyTrial |
+
int |
+setupInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> |
+setupInvocationMutexUpdater |
+
int |
+setupIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> |
+setupIterationMutexUpdater |
+
int |
+setupTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> |
+setupTrialMutexUpdater |
+
int |
+tearInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> |
+tearInvocationMutexUpdater |
+
int |
+tearIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> |
+tearIterationMutexUpdater |
+
int |
+tearTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> |
+tearTrialMutexUpdater |
+
Constructor and Description | +
---|
GetByteBenchmark_jmh_B2() |
+
getByteBeginning, getByteEnd, getByteMiddle, main, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public volatile int setupTrialMutex+
public volatile int tearTrialMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> setupTrialMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> tearTrialMutexUpdater+
public volatile int setupIterationMutex+
public volatile int tearIterationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> setupIterationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> tearIterationMutexUpdater+
public volatile int setupInvocationMutex+
public volatile int tearInvocationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> setupInvocationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> tearInvocationMutexUpdater+
public volatile boolean readyTrial+
public volatile boolean readyIteration+
public volatile boolean readyInvocation+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B3.html new file mode 100644 index 0000000000..dd7f309c6f --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/GetByteBenchmark_jmh_B3.html @@ -0,0 +1,280 @@ + + + + + + +public class GetByteBenchmark_jmh_B3 +extends GetByteBenchmark_jmh_B2+
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
Constructor and Description | +
---|
GetByteBenchmark_jmh_B3() |
+
getByteBeginning, getByteEnd, getByteMiddle, main, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfByte.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfByte.html new file mode 100644 index 0000000000..22728b722b --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfByte.html @@ -0,0 +1,445 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class IndexOfElementBenchmark_indexOfByte
+extends java.lang.Object
+Constructor and Description | +
---|
IndexOfElementBenchmark_indexOfByte() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+indexOfByte_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+indexOfByte_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+indexOfByte_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+indexOfByte_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+indexOfByte_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+indexOfByte_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+indexOfByte_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+indexOfByte_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IndexOfElementBenchmark_indexOfByte()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> indexOfByte_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void indexOfByte_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> indexOfByte_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void indexOfByte_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> indexOfByte_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void indexOfByte_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> indexOfByte_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void indexOfByte_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfByteString.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfByteString.html new file mode 100644 index 0000000000..663dd3a90d --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfByteString.html @@ -0,0 +1,445 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class IndexOfElementBenchmark_indexOfByteString
+extends java.lang.Object
+Constructor and Description | +
---|
IndexOfElementBenchmark_indexOfByteString() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+indexOfByteString_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+indexOfByteString_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+indexOfByteString_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+indexOfByteString_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+indexOfByteString_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+indexOfByteString_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+indexOfByteString_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+indexOfByteString_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IndexOfElementBenchmark_indexOfByteString()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> indexOfByteString_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void indexOfByteString_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> indexOfByteString_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void indexOfByteString_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> indexOfByteString_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void indexOfByteString_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> indexOfByteString_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void indexOfByteString_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfElement.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfElement.html new file mode 100644 index 0000000000..978684e71f --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_indexOfElement.html @@ -0,0 +1,445 @@ + + + + + + +@Generated(value="org.openjdk.jmh.generators.core.BenchmarkGenerator")
+public final class IndexOfElementBenchmark_indexOfElement
+extends java.lang.Object
+Constructor and Description | +
---|
IndexOfElementBenchmark_indexOfElement() |
+
Modifier and Type | +Method and Description | +
---|---|
java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> |
+indexOfElement_AverageTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+indexOfElement_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+indexOfElement_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> |
+indexOfElement_SampleTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
java.util.Collection<org.openjdk.jmh.results.SingleShotResult> |
+indexOfElement_SingleShotTime(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+indexOfElement_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
java.util.Collection<org.openjdk.jmh.results.ThroughputResult> |
+indexOfElement_Throughput(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.infra.ThreadParams threadParams) |
+
void |
+indexOfElement_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IndexOfElementBenchmark_indexOfElement()+
public java.util.Collection<org.openjdk.jmh.results.ThroughputResult> indexOfElement_Throughput(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void indexOfElement_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.AverageTimeResult> indexOfElement_AverageTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void indexOfElement_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.results.RawResults result, + IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SampleTimeResult> indexOfElement_SampleTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void indexOfElement_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.util.SampleBuffer buffer, + int targetSamples, + long opsPerInv, + int batchSize, + IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
public java.util.Collection<org.openjdk.jmh.results.SingleShotResult> indexOfElement_SingleShotTime(org.openjdk.jmh.runner.InfraControl control, + org.openjdk.jmh.infra.ThreadParams threadParams) + throws java.lang.Throwable+
java.lang.Throwable
public void indexOfElement_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control, + int batchSize, + org.openjdk.jmh.results.RawResults result, + IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G, + Blackhole_jmh l_blackhole1_0) + throws java.lang.Throwable+
java.lang.Throwable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh.html new file mode 100644 index 0000000000..60633ddfa0 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh.html @@ -0,0 +1,281 @@ + + + + + + +public class IndexOfElementBenchmark_jmh +extends IndexOfElementBenchmark_jmh_B3+
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
Constructor and Description | +
---|
IndexOfElementBenchmark_jmh() |
+
indexOfByte, indexOfByteString, indexOfElement, main, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B1.html new file mode 100644 index 0000000000..ea1676a4e7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B1.html @@ -0,0 +1,255 @@ + + + + + + +public class IndexOfElementBenchmark_jmh_B1 +extends IndexOfElementBenchmark+
Constructor and Description | +
---|
IndexOfElementBenchmark_jmh_B1() |
+
indexOfByte, indexOfByteString, indexOfElement, main, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B2.html new file mode 100644 index 0000000000..8a553a4fa7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B2.html @@ -0,0 +1,478 @@ + + + + + + +public class IndexOfElementBenchmark_jmh_B2 +extends IndexOfElementBenchmark_jmh_B1+
Modifier and Type | +Field and Description | +
---|---|
boolean |
+readyInvocation |
+
boolean |
+readyIteration |
+
boolean |
+readyTrial |
+
int |
+setupInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> |
+setupInvocationMutexUpdater |
+
int |
+setupIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> |
+setupIterationMutexUpdater |
+
int |
+setupTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> |
+setupTrialMutexUpdater |
+
int |
+tearInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> |
+tearInvocationMutexUpdater |
+
int |
+tearIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> |
+tearIterationMutexUpdater |
+
int |
+tearTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> |
+tearTrialMutexUpdater |
+
Constructor and Description | +
---|
IndexOfElementBenchmark_jmh_B2() |
+
indexOfByte, indexOfByteString, indexOfElement, main, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public volatile int setupTrialMutex+
public volatile int tearTrialMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> setupTrialMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> tearTrialMutexUpdater+
public volatile int setupIterationMutex+
public volatile int tearIterationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> setupIterationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> tearIterationMutexUpdater+
public volatile int setupInvocationMutex+
public volatile int tearInvocationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> setupInvocationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> tearInvocationMutexUpdater+
public volatile boolean readyTrial+
public volatile boolean readyIteration+
public volatile boolean readyInvocation+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B3.html new file mode 100644 index 0000000000..1eaa929fb1 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/IndexOfElementBenchmark_jmh_B3.html @@ -0,0 +1,280 @@ + + + + + + +public class IndexOfElementBenchmark_jmh_B3 +extends IndexOfElementBenchmark_jmh_B2+
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
Constructor and Description | +
---|
IndexOfElementBenchmark_jmh_B3() |
+
indexOfByte, indexOfByteString, indexOfElement, main, setup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh.html new file mode 100644 index 0000000000..56ad4fcbcf --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh.html @@ -0,0 +1,290 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+BufferCursorSeekBenchmark_seekBackward.seekBackward_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBackward.seekBackward_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBackward.seekBackward_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBackward.seekBackward_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBeginning.seekBeginning_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBeginning.seekBeginning_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBeginning.seekBeginning_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBeginning.seekBeginning_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekEnd.seekEnd_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekEnd.seekEnd_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekEnd.seekEnd_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekEnd.seekEnd_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekForward.seekForward_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekForward.seekForward_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekForward.seekForward_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekForward.seekForward_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B1.html new file mode 100644 index 0000000000..6762f56cce --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferCursorSeekBenchmark_jmh |
+
class |
+BufferCursorSeekBenchmark_jmh_B2 |
+
class |
+BufferCursorSeekBenchmark_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B2.html new file mode 100644 index 0000000000..d02e625abd --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferCursorSeekBenchmark_jmh |
+
class |
+BufferCursorSeekBenchmark_jmh_B3 |
+
Modifier and Type | +Field and Description | +
---|---|
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> |
+BufferCursorSeekBenchmark_jmh_B2.setupInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> |
+BufferCursorSeekBenchmark_jmh_B2.setupIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> |
+BufferCursorSeekBenchmark_jmh_B2.setupTrialMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> |
+BufferCursorSeekBenchmark_jmh_B2.tearInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> |
+BufferCursorSeekBenchmark_jmh_B2.tearIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferCursorSeekBenchmark_jmh_B2> |
+BufferCursorSeekBenchmark_jmh_B2.tearTrialMutexUpdater |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B3.html new file mode 100644 index 0000000000..b55e3cf787 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferCursorSeekBenchmark_jmh |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekBackward.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekBackward.html new file mode 100644 index 0000000000..9619aa8671 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekBackward.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekBeginning.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekBeginning.html new file mode 100644 index 0000000000..2a3bdadb40 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekBeginning.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekEnd.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekEnd.html new file mode 100644 index 0000000000..e4738a8279 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekEnd.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekForward.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekForward.html new file mode 100644 index 0000000000..5b4015fd90 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferCursorSeekBenchmark_seekForward.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh.html new file mode 100644 index 0000000000..bb8cd78856 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh.html @@ -0,0 +1,198 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+BufferPerformanceBenchmark_cold.thinkWriteCold_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkWriteCold_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkWriteCold_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkWriteCold_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B1.html new file mode 100644 index 0000000000..1dbbe9ab9f --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh |
+
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B2 |
+
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B2.html new file mode 100644 index 0000000000..ccf19534eb --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh |
+
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B3 |
+
Modifier and Type | +Field and Description | +
---|---|
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B2.setupInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B2.setupIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B2.setupTrialMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B2.tearInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B2.tearIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_ColdBuffers_jmh_B2> |
+BufferPerformanceBenchmark_ColdBuffers_jmh_B2.tearTrialMutexUpdater |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B3.html new file mode 100644 index 0000000000..eae749dd6c --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_ColdBuffers_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_ColdBuffers_jmh |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh.html new file mode 100644 index 0000000000..221fd68a60 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh.html @@ -0,0 +1,414 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+BufferPerformanceBenchmark_cold.thinkReadHot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkReadHot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkReadHot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkReadHot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads16hot.threads16hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads16hot.threads16hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads16hot.threads16hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads16hot.threads16hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads1hot.threads1hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads1hot.threads1hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads1hot.threads1hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads1hot.threads1hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads2hot.threads2hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads2hot.threads2hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads2hot.threads2hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads2hot.threads2hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads32hot.threads32hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads32hot.threads32hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads32hot.threads32hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads32hot.threads32hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads4hot.threads4hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads4hot.threads4hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads4hot.threads4hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads4hot.threads4hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads8hot.threads8hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads8hot.threads8hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads8hot.threads8hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads8hot.threads8hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B1.html new file mode 100644 index 0000000000..f616a1bf22 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_HotBuffers_jmh |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh_B2 |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B2.html new file mode 100644 index 0000000000..0f9e57c577 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_HotBuffers_jmh |
+
class |
+BufferPerformanceBenchmark_HotBuffers_jmh_B3 |
+
Modifier and Type | +Field and Description | +
---|---|
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> |
+BufferPerformanceBenchmark_HotBuffers_jmh_B2.setupInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> |
+BufferPerformanceBenchmark_HotBuffers_jmh_B2.setupIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> |
+BufferPerformanceBenchmark_HotBuffers_jmh_B2.setupTrialMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> |
+BufferPerformanceBenchmark_HotBuffers_jmh_B2.tearInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> |
+BufferPerformanceBenchmark_HotBuffers_jmh_B2.tearIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_HotBuffers_jmh_B2> |
+BufferPerformanceBenchmark_HotBuffers_jmh_B2.tearTrialMutexUpdater |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B3.html new file mode 100644 index 0000000000..4caee76d44 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_HotBuffers_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_HotBuffers_jmh |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_cold.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_cold.html new file mode 100644 index 0000000000..7920da6c6f --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_cold.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh.html new file mode 100644 index 0000000000..393416b24a --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh.html @@ -0,0 +1,450 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+BufferPerformanceBenchmark_cold.thinkReadHot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkReadHot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkReadHot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkReadHot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkWriteCold_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkWriteCold_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkWriteCold_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkWriteCold_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads16hot.threads16hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads16hot.threads16hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads16hot.threads16hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads16hot.threads16hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads1hot.threads1hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads1hot.threads1hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads1hot.threads1hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads1hot.threads1hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads2hot.threads2hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads2hot.threads2hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads2hot.threads2hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads2hot.threads2hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads32hot.threads32hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads32hot.threads32hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads32hot.threads32hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads32hot.threads32hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads4hot.threads4hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads4hot.threads4hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads4hot.threads4hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads4hot.threads4hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads8hot.threads8hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads8hot.threads8hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads8hot.threads8hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads8hot.threads8hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B1.html new file mode 100644 index 0000000000..72c1be6803 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_jmh |
+
class |
+BufferPerformanceBenchmark_jmh_B2 |
+
class |
+BufferPerformanceBenchmark_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B2.html new file mode 100644 index 0000000000..3b2552db13 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_jmh |
+
class |
+BufferPerformanceBenchmark_jmh_B3 |
+
Modifier and Type | +Field and Description | +
---|---|
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> |
+BufferPerformanceBenchmark_jmh_B2.setupInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> |
+BufferPerformanceBenchmark_jmh_B2.setupIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> |
+BufferPerformanceBenchmark_jmh_B2.setupTrialMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> |
+BufferPerformanceBenchmark_jmh_B2.tearInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> |
+BufferPerformanceBenchmark_jmh_B2.tearIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<BufferPerformanceBenchmark_jmh_B2> |
+BufferPerformanceBenchmark_jmh_B2.tearTrialMutexUpdater |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B3.html new file mode 100644 index 0000000000..191a554379 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+BufferPerformanceBenchmark_jmh |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads16hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads16hot.html new file mode 100644 index 0000000000..71410a3be6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads16hot.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads1hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads1hot.html new file mode 100644 index 0000000000..9011d652ea --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads1hot.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads2hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads2hot.html new file mode 100644 index 0000000000..047b55df15 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads2hot.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads32hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads32hot.html new file mode 100644 index 0000000000..ae9a33e698 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads32hot.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads4hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads4hot.html new file mode 100644 index 0000000000..b3439980ef --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads4hot.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads8hot.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads8hot.html new file mode 100644 index 0000000000..e8b709f9ed --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/BufferPerformanceBenchmark_threads8hot.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteBeginning.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteBeginning.html new file mode 100644 index 0000000000..080ba474e6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteBeginning.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteEnd.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteEnd.html new file mode 100644 index 0000000000..539d236f21 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteEnd.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteMiddle.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteMiddle.html new file mode 100644 index 0000000000..9d84d67c55 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_getByteMiddle.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh.html new file mode 100644 index 0000000000..26c57b2b26 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh.html @@ -0,0 +1,258 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+GetByteBenchmark_getByteBeginning.getByteBeginning_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteBeginning.getByteBeginning_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteBeginning.getByteBeginning_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteBeginning.getByteBeginning_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteEnd.getByteEnd_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteEnd.getByteEnd_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteEnd.getByteEnd_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteEnd.getByteEnd_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteMiddle.getByteMiddle_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteMiddle.getByteMiddle_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteMiddle.getByteMiddle_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteMiddle.getByteMiddle_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B1.html new file mode 100644 index 0000000000..20ee67cda8 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+GetByteBenchmark_jmh |
+
class |
+GetByteBenchmark_jmh_B2 |
+
class |
+GetByteBenchmark_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B2.html new file mode 100644 index 0000000000..ad4b30d6d8 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+GetByteBenchmark_jmh |
+
class |
+GetByteBenchmark_jmh_B3 |
+
Modifier and Type | +Field and Description | +
---|---|
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> |
+GetByteBenchmark_jmh_B2.setupInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> |
+GetByteBenchmark_jmh_B2.setupIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> |
+GetByteBenchmark_jmh_B2.setupTrialMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> |
+GetByteBenchmark_jmh_B2.tearInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> |
+GetByteBenchmark_jmh_B2.tearIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<GetByteBenchmark_jmh_B2> |
+GetByteBenchmark_jmh_B2.tearTrialMutexUpdater |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B3.html new file mode 100644 index 0000000000..84fad41c77 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/GetByteBenchmark_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+GetByteBenchmark_jmh |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfByte.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfByte.html new file mode 100644 index 0000000000..ffee9f6c12 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfByte.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfByteString.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfByteString.html new file mode 100644 index 0000000000..abcd391fb7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfByteString.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfElement.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfElement.html new file mode 100644 index 0000000000..a1ad489735 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_indexOfElement.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh.html new file mode 100644 index 0000000000..1fb9549763 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh.html @@ -0,0 +1,258 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+IndexOfElementBenchmark_indexOfByte.indexOfByte_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByte.indexOfByte_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByte.indexOfByte_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByte.indexOfByte_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByteString.indexOfByteString_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByteString.indexOfByteString_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByteString.indexOfByteString_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByteString.indexOfByteString_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfElement.indexOfElement_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfElement.indexOfElement_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfElement.indexOfElement_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfElement.indexOfElement_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B1.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B1.html new file mode 100644 index 0000000000..0a81533da9 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+IndexOfElementBenchmark_jmh |
+
class |
+IndexOfElementBenchmark_jmh_B2 |
+
class |
+IndexOfElementBenchmark_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B2.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B2.html new file mode 100644 index 0000000000..2c8405b9e6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+IndexOfElementBenchmark_jmh |
+
class |
+IndexOfElementBenchmark_jmh_B3 |
+
Modifier and Type | +Field and Description | +
---|---|
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> |
+IndexOfElementBenchmark_jmh_B2.setupInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> |
+IndexOfElementBenchmark_jmh_B2.setupIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> |
+IndexOfElementBenchmark_jmh_B2.setupTrialMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> |
+IndexOfElementBenchmark_jmh_B2.tearInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> |
+IndexOfElementBenchmark_jmh_B2.tearIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<IndexOfElementBenchmark_jmh_B2> |
+IndexOfElementBenchmark_jmh_B2.tearTrialMutexUpdater |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B3.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B3.html new file mode 100644 index 0000000000..72bf7b0765 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/class-use/IndexOfElementBenchmark_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+IndexOfElementBenchmark_jmh |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-frame.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-frame.html new file mode 100644 index 0000000000..cee066e5fe --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-frame.html @@ -0,0 +1,61 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-tree.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-tree.html new file mode 100644 index 0000000000..03382bd0e6 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-tree.html @@ -0,0 +1,265 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-use.html b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-use.html new file mode 100644 index 0000000000..a93f5b44eb --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/generated/package-use.html @@ -0,0 +1,228 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/package-frame.html b/1.x/benchmarks/com/squareup/okio/benchmarks/package-frame.html new file mode 100644 index 0000000000..8c18957ba7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/package-frame.html @@ -0,0 +1,28 @@ + + + + + + +Class | +Description | +
---|---|
BufferCursorSeekBenchmark | ++ |
BufferPerformanceBenchmark | ++ |
BufferPerformanceBenchmark.BufferSetup | ++ |
BufferPerformanceBenchmark.BufferState | ++ |
BufferPerformanceBenchmark.ColdBuffers | ++ |
BufferPerformanceBenchmark.HotBuffers | ++ |
GetByteBenchmark | ++ |
IndexOfElementBenchmark | ++ |
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/package-tree.html b/1.x/benchmarks/com/squareup/okio/benchmarks/package-tree.html new file mode 100644 index 0000000000..b5b98d1ad7 --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/package-tree.html @@ -0,0 +1,152 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/com/squareup/okio/benchmarks/package-use.html b/1.x/benchmarks/com/squareup/okio/benchmarks/package-use.html new file mode 100644 index 0000000000..478d54ce0e --- /dev/null +++ b/1.x/benchmarks/com/squareup/okio/benchmarks/package-use.html @@ -0,0 +1,211 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks | ++ |
com.squareup.okio.benchmarks.generated | ++ |
Class and Description | +
---|
BufferPerformanceBenchmark | +
BufferPerformanceBenchmark.BufferSetup | +
BufferPerformanceBenchmark.BufferState | +
BufferPerformanceBenchmark.ColdBuffers | +
BufferPerformanceBenchmark.HotBuffers | +
Class and Description | +
---|
BufferCursorSeekBenchmark | +
BufferPerformanceBenchmark | +
BufferPerformanceBenchmark.BufferSetup | +
BufferPerformanceBenchmark.BufferState | +
BufferPerformanceBenchmark.ColdBuffers | +
BufferPerformanceBenchmark.HotBuffers | +
GetByteBenchmark | +
IndexOfElementBenchmark | +
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/constant-values.html b/1.x/benchmarks/constant-values.html new file mode 100644 index 0000000000..d37dcd5fe3 --- /dev/null +++ b/1.x/benchmarks/constant-values.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/deprecated-list.html b/1.x/benchmarks/deprecated-list.html new file mode 100644 index 0000000000..fc5ab5421a --- /dev/null +++ b/1.x/benchmarks/deprecated-list.html @@ -0,0 +1,126 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/help-doc.html b/1.x/benchmarks/help-doc.html new file mode 100644 index 0000000000..09ba77f211 --- /dev/null +++ b/1.x/benchmarks/help-doc.html @@ -0,0 +1,231 @@ + + + + + + +The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object
. The interfaces do not inherit from java.lang.Object
.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/index-all.html b/1.x/benchmarks/index-all.html new file mode 100644 index 0000000000..5365034f9e --- /dev/null +++ b/1.x/benchmarks/index-all.html @@ -0,0 +1,977 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/index.html b/1.x/benchmarks/index.html new file mode 100644 index 0000000000..43cfa89b63 --- /dev/null +++ b/1.x/benchmarks/index.html @@ -0,0 +1,76 @@ + + + + + + +public class Blackhole_jmh +extends Blackhole_jmh_B3+
Modifier and Type | +Field and Description | +
---|---|
byte |
+b1 |
+
byte |
+b2 |
+
boolean |
+bool1 |
+
boolean |
+bool2 |
+
char |
+c1 |
+
char |
+c2 |
+
double |
+d1 |
+
double |
+d2 |
+
float |
+f1 |
+
float |
+f2 |
+
int |
+i1 |
+
int |
+i2 |
+
long |
+l1 |
+
long |
+l2 |
+
org.openjdk.jmh.infra.BlackholeL2 |
+nullBait |
+
java.lang.Object |
+obj1 |
+
java.lang.Object[] |
+objs1 |
+
short |
+s1 |
+
short |
+s2 |
+
int |
+tlr |
+
int |
+tlrMask |
+
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
Constructor and Description | +
---|
Blackhole_jmh() |
+
clearSinks, consume, consume, consume, consume, consume, consume, consume, consume, consume, consume, consumeCPU
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public volatile byte b1+
public volatile boolean bool1+
public volatile char c1+
public volatile short s1+
public volatile int i1+
public volatile long l1+
public volatile float f1+
public volatile double d1+
public byte b2+
public boolean bool2+
public char c2+
public short s2+
public int i2+
public long l2+
public float f2+
public double d2+
public volatile java.lang.Object obj1+
public volatile java.lang.Object[] objs1+
public volatile org.openjdk.jmh.infra.BlackholeL2 nullBait+
public int tlr+
public volatile int tlrMask+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B1.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B1.html new file mode 100644 index 0000000000..2507759d68 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B1.html @@ -0,0 +1,551 @@ + + + + + + +public class Blackhole_jmh_B1
+extends org.openjdk.jmh.infra.Blackhole
+Modifier and Type | +Field and Description | +
---|---|
byte |
+b1 |
+
byte |
+b2 |
+
boolean |
+bool1 |
+
boolean |
+bool2 |
+
char |
+c1 |
+
char |
+c2 |
+
double |
+d1 |
+
double |
+d2 |
+
float |
+f1 |
+
float |
+f2 |
+
int |
+i1 |
+
int |
+i2 |
+
long |
+l1 |
+
long |
+l2 |
+
org.openjdk.jmh.infra.BlackholeL2 |
+nullBait |
+
java.lang.Object |
+obj1 |
+
java.lang.Object[] |
+objs1 |
+
short |
+s1 |
+
short |
+s2 |
+
int |
+tlr |
+
int |
+tlrMask |
+
Constructor and Description | +
---|
Blackhole_jmh_B1() |
+
clearSinks, consume, consume, consume, consume, consume, consume, consume, consume, consume, consume, consumeCPU
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public volatile byte b1+
public volatile boolean bool1+
public volatile char c1+
public volatile short s1+
public volatile int i1+
public volatile long l1+
public volatile float f1+
public volatile double d1+
public byte b2+
public boolean bool2+
public char c2+
public short s2+
public int i2+
public long l2+
public float f2+
public double d2+
public volatile java.lang.Object obj1+
public volatile java.lang.Object[] objs1+
public volatile org.openjdk.jmh.infra.BlackholeL2 nullBait+
public int tlr+
public volatile int tlrMask+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B2.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B2.html new file mode 100644 index 0000000000..5b08e05538 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B2.html @@ -0,0 +1,751 @@ + + + + + + +public class Blackhole_jmh_B2 +extends Blackhole_jmh_B1+
Modifier and Type | +Field and Description | +
---|---|
byte |
+b1 |
+
byte |
+b2 |
+
boolean |
+bool1 |
+
boolean |
+bool2 |
+
char |
+c1 |
+
char |
+c2 |
+
double |
+d1 |
+
double |
+d2 |
+
float |
+f1 |
+
float |
+f2 |
+
int |
+i1 |
+
int |
+i2 |
+
long |
+l1 |
+
long |
+l2 |
+
org.openjdk.jmh.infra.BlackholeL2 |
+nullBait |
+
java.lang.Object |
+obj1 |
+
java.lang.Object[] |
+objs1 |
+
boolean |
+readyInvocation |
+
boolean |
+readyIteration |
+
boolean |
+readyTrial |
+
short |
+s1 |
+
short |
+s2 |
+
int |
+setupInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> |
+setupInvocationMutexUpdater |
+
int |
+setupIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> |
+setupIterationMutexUpdater |
+
int |
+setupTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> |
+setupTrialMutexUpdater |
+
int |
+tearInvocationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> |
+tearInvocationMutexUpdater |
+
int |
+tearIterationMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> |
+tearIterationMutexUpdater |
+
int |
+tearTrialMutex |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> |
+tearTrialMutexUpdater |
+
int |
+tlr |
+
int |
+tlrMask |
+
Constructor and Description | +
---|
Blackhole_jmh_B2() |
+
clearSinks, consume, consume, consume, consume, consume, consume, consume, consume, consume, consume, consumeCPU
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public volatile int setupTrialMutex+
public volatile int tearTrialMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> setupTrialMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> tearTrialMutexUpdater+
public volatile int setupIterationMutex+
public volatile int tearIterationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> setupIterationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> tearIterationMutexUpdater+
public volatile int setupInvocationMutex+
public volatile int tearInvocationMutex+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> setupInvocationMutexUpdater+
public static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> tearInvocationMutexUpdater+
public boolean readyTrial+
public boolean readyIteration+
public boolean readyInvocation+
public volatile byte b1+
public volatile boolean bool1+
public volatile char c1+
public volatile short s1+
public volatile int i1+
public volatile long l1+
public volatile float f1+
public volatile double d1+
public byte b2+
public boolean bool2+
public char c2+
public short s2+
public int i2+
public long l2+
public float f2+
public double d2+
public volatile java.lang.Object obj1+
public volatile java.lang.Object[] objs1+
public volatile org.openjdk.jmh.infra.BlackholeL2 nullBait+
public int tlr+
public volatile int tlrMask+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B3.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B3.html new file mode 100644 index 0000000000..0ce74349eb --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/Blackhole_jmh_B3.html @@ -0,0 +1,568 @@ + + + + + + +public class Blackhole_jmh_B3 +extends Blackhole_jmh_B2+
Modifier and Type | +Field and Description | +
---|---|
byte |
+b1 |
+
byte |
+b2 |
+
boolean |
+bool1 |
+
boolean |
+bool2 |
+
char |
+c1 |
+
char |
+c2 |
+
double |
+d1 |
+
double |
+d2 |
+
float |
+f1 |
+
float |
+f2 |
+
int |
+i1 |
+
int |
+i2 |
+
long |
+l1 |
+
long |
+l2 |
+
org.openjdk.jmh.infra.BlackholeL2 |
+nullBait |
+
java.lang.Object |
+obj1 |
+
java.lang.Object[] |
+objs1 |
+
short |
+s1 |
+
short |
+s2 |
+
int |
+tlr |
+
int |
+tlrMask |
+
readyInvocation, readyIteration, readyTrial, setupInvocationMutex, setupInvocationMutexUpdater, setupIterationMutex, setupIterationMutexUpdater, setupTrialMutex, setupTrialMutexUpdater, tearInvocationMutex, tearInvocationMutexUpdater, tearIterationMutex, tearIterationMutexUpdater, tearTrialMutex, tearTrialMutexUpdater
Constructor and Description | +
---|
Blackhole_jmh_B3() |
+
clearSinks, consume, consume, consume, consume, consume, consume, consume, consume, consume, consume, consumeCPU
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public volatile byte b1+
public volatile boolean bool1+
public volatile char c1+
public volatile short s1+
public volatile int i1+
public volatile long l1+
public volatile float f1+
public volatile double d1+
public byte b2+
public boolean bool2+
public char c2+
public short s2+
public int i2+
public long l2+
public float f2+
public double d2+
public volatile java.lang.Object obj1+
public volatile java.lang.Object[] objs1+
public volatile org.openjdk.jmh.infra.BlackholeL2 nullBait+
public int tlr+
public volatile int tlrMask+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh.html new file mode 100644 index 0000000000..ce1180b08d --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh.html @@ -0,0 +1,770 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+GetByteBenchmark_getByteBeginning.getByteBeginning_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteBeginning.getByteBeginning_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteBeginning.getByteBeginning_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteBeginning.getByteBeginning_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteEnd.getByteEnd_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteEnd.getByteEnd_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteEnd.getByteEnd_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteEnd.getByteEnd_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteMiddle.getByteMiddle_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteMiddle.getByteMiddle_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteMiddle.getByteMiddle_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+GetByteBenchmark_getByteMiddle.getByteMiddle_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ GetByteBenchmark_jmh l_getbytebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByte.indexOfByte_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByte.indexOfByte_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByte.indexOfByte_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByte.indexOfByte_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByteString.indexOfByteString_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByteString.indexOfByteString_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByteString.indexOfByteString_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfByteString.indexOfByteString_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfElement.indexOfElement_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfElement.indexOfElement_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfElement.indexOfElement_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+IndexOfElementBenchmark_indexOfElement.indexOfElement_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ IndexOfElementBenchmark_jmh l_indexofelementbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBackward.seekBackward_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBackward.seekBackward_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBackward.seekBackward_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBackward.seekBackward_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBeginning.seekBeginning_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBeginning.seekBeginning_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBeginning.seekBeginning_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekBeginning.seekBeginning_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekEnd.seekEnd_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekEnd.seekEnd_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekEnd.seekEnd_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekEnd.seekEnd_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekForward.seekForward_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekForward.seekForward_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekForward.seekForward_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferCursorSeekBenchmark_seekForward.seekForward_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferCursorSeekBenchmark_jmh l_buffercursorseekbenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkReadHot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkReadHot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkReadHot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkReadHot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkWriteCold_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkWriteCold_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkWriteCold_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_cold.thinkWriteCold_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_ColdBuffers_jmh l_coldbuffers3_2,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads16hot.threads16hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads16hot.threads16hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads16hot.threads16hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads16hot.threads16hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads1hot.threads1hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads1hot.threads1hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads1hot.threads1hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads1hot.threads1hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads2hot.threads2hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads2hot.threads2hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads2hot.threads2hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads2hot.threads2hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads32hot.threads32hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads32hot.threads32hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads32hot.threads32hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads32hot.threads32hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads4hot.threads4hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads4hot.threads4hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads4hot.threads4hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads4hot.threads4hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads8hot.threads8hot_avgt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads8hot.threads8hot_sample_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.util.SampleBuffer buffer,
+ int targetSamples,
+ long opsPerInv,
+ int batchSize,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads8hot.threads8hot_ss_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ int batchSize,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
void |
+BufferPerformanceBenchmark_threads8hot.threads8hot_thrpt_jmhStub(org.openjdk.jmh.runner.InfraControl control,
+ org.openjdk.jmh.results.RawResults result,
+ BufferPerformanceBenchmark_HotBuffers_jmh l_hotbuffers2_1,
+ BufferPerformanceBenchmark_jmh l_bufferperformancebenchmark0_G,
+ Blackhole_jmh l_blackhole1_0) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B1.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B1.html new file mode 100644 index 0000000000..0d73ebe503 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B1.html @@ -0,0 +1,174 @@ + + + + + + +Package | +Description | +
---|---|
org.openjdk.jmh.infra.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+Blackhole_jmh |
+
class |
+Blackhole_jmh_B2 |
+
class |
+Blackhole_jmh_B3 |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B2.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B2.html new file mode 100644 index 0000000000..f1d7720872 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B2.html @@ -0,0 +1,203 @@ + + + + + + +Package | +Description | +
---|---|
org.openjdk.jmh.infra.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+Blackhole_jmh |
+
class |
+Blackhole_jmh_B3 |
+
Modifier and Type | +Field and Description | +
---|---|
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> |
+Blackhole_jmh_B2.setupInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> |
+Blackhole_jmh_B2.setupIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> |
+Blackhole_jmh_B2.setupTrialMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> |
+Blackhole_jmh_B2.tearInvocationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> |
+Blackhole_jmh_B2.tearIterationMutexUpdater |
+
static java.util.concurrent.atomic.AtomicIntegerFieldUpdater<Blackhole_jmh_B2> |
+Blackhole_jmh_B2.tearTrialMutexUpdater |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B3.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B3.html new file mode 100644 index 0000000000..f0d5fba5f7 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/class-use/Blackhole_jmh_B3.html @@ -0,0 +1,166 @@ + + + + + + +Package | +Description | +
---|---|
org.openjdk.jmh.infra.generated | ++ |
Modifier and Type | +Class and Description | +
---|---|
class |
+Blackhole_jmh |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-frame.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-frame.html new file mode 100644 index 0000000000..55a4490835 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-frame.html @@ -0,0 +1,24 @@ + + + + + + +Class | +Description | +
---|---|
Blackhole_jmh | ++ |
Blackhole_jmh_B1 | ++ |
Blackhole_jmh_B2 | ++ |
Blackhole_jmh_B3 | ++ |
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-tree.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-tree.html new file mode 100644 index 0000000000..d4e863db2a --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-tree.html @@ -0,0 +1,155 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-use.html b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-use.html new file mode 100644 index 0000000000..9eb7827246 --- /dev/null +++ b/1.x/benchmarks/org/openjdk/jmh/infra/generated/package-use.html @@ -0,0 +1,184 @@ + + + + + + +Package | +Description | +
---|---|
com.squareup.okio.benchmarks.generated | ++ |
org.openjdk.jmh.infra.generated | ++ |
Class and Description | +
---|
Blackhole_jmh | +
Class and Description | +
---|
Blackhole_jmh_B1 | +
Blackhole_jmh_B2 | +
Blackhole_jmh_B3 | +
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/overview-frame.html b/1.x/benchmarks/overview-frame.html new file mode 100644 index 0000000000..e6ad46b1ff --- /dev/null +++ b/1.x/benchmarks/overview-frame.html @@ -0,0 +1,24 @@ + + + + + + ++ + diff --git a/1.x/benchmarks/overview-summary.html b/1.x/benchmarks/overview-summary.html new file mode 100644 index 0000000000..8120f29727 --- /dev/null +++ b/1.x/benchmarks/overview-summary.html @@ -0,0 +1,148 @@ + + + + + + +
Package | +Description | +
---|---|
com.squareup.okio.benchmarks | ++ |
com.squareup.okio.benchmarks.generated | ++ |
org.openjdk.jmh.infra.generated | ++ |
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/overview-tree.html b/1.x/benchmarks/overview-tree.html new file mode 100644 index 0000000000..3f6abfdf77 --- /dev/null +++ b/1.x/benchmarks/overview-tree.html @@ -0,0 +1,284 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/benchmarks/package-list b/1.x/benchmarks/package-list new file mode 100644 index 0000000000..5518c18064 --- /dev/null +++ b/1.x/benchmarks/package-list @@ -0,0 +1,3 @@ +com.squareup.okio.benchmarks +com.squareup.okio.benchmarks.generated +org.openjdk.jmh.infra.generated diff --git a/1.x/benchmarks/script.js b/1.x/benchmarks/script.js new file mode 100644 index 0000000000..b346356931 --- /dev/null +++ b/1.x/benchmarks/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/1.x/benchmarks/stylesheet.css b/1.x/benchmarks/stylesheet.css new file mode 100644 index 0000000000..8841f37c43 --- /dev/null +++ b/1.x/benchmarks/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/1.x/benchmarks/version.txt b/1.x/benchmarks/version.txt new file mode 100644 index 0000000000..15b989e398 --- /dev/null +++ b/1.x/benchmarks/version.txt @@ -0,0 +1 @@ +1.16.0 diff --git a/1.x/index.html b/1.x/index.html new file mode 100644 index 0000000000..a8001e4e9b --- /dev/null +++ b/1.x/index.html @@ -0,0 +1,10 @@ + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/deprecated-list.html b/1.x/okio/deprecated-list.html new file mode 100644 index 0000000000..18070abc0e --- /dev/null +++ b/1.x/okio/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/help-doc.html b/1.x/okio/help-doc.html new file mode 100644 index 0000000000..b447d49312 --- /dev/null +++ b/1.x/okio/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object
. The interfaces do not inherit from java.lang.Object
.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/index-all.html b/1.x/okio/index-all.html new file mode 100644 index 0000000000..8a850d08ff --- /dev/null +++ b/1.x/okio/index-all.html @@ -0,0 +1,1396 @@ + + + + + + +file
.ByteBuffer
view of the bytes in this ByteString
.source
.sink
.out
.byteCount
bytes from this, starting at offset
, to
+ out
.byteCount
bytes from this, starting at offset
, to out
.duration
time.Deflater
.Sink
to which this instance is delegating.Source
to which this instance is delegating.Timeout
instance to which this instance is currently delegating.ByteString
.charset
-encoded bytes of s
.UTF-8
bytes of s
.Sink
which forwards calls to another.Source
which forwards calls to another.Timeout
which forwards calls to another.pos
.pos
.b
in this at or beyond fromIndex
, or
+ -1 if this buffer does not contain b
in that range.indexOf(b, 0)
.b
in the buffer at or after fromIndex
.b
if it is found in the range of fromIndex
inclusive
+ to toIndex
exclusive.indexOf(bytes, 0)
.bytes
in the buffer at or after fromIndex
.indexOfElement(targetBytes, 0)
.fromIndex
and that contains
+ any of the bytes in targetBytes
.IOException
to represent a timeout.end - start
.data
.byteCount
bytes of data
starting
+ at offset
.java.io
and java.nio
to make it much easier to access, store,
+ and process your data.BufferedSource.select(okio.Options)
.offset
in this source equal bytes
.byteCount
bytes at offset
in this source equal bytes
+ at bytesOffset
.[offset..offset+byteCount)
equal the bytes of
+ other
in [otherOffset..otherOffset+byteCount)
.[offset..offset+byteCount)
equal the bytes of
+ other
in [otherOffset..otherOffset+byteCount)
.sink.length
bytes from this and copies them into sink
.byteCount
bytes from this and copies them into sink
at offset
.count
bytes from in
and returns the result.byteCount
bytes from this and appends
+ them to sink
.sink
.byteCount
bytes from this and returns them as a byte array.byteCount
bytes from this and returns them as a byte string.in
to this.byteCount
bytes from in
to this.sink.length
bytes from this and copies them into sink
.byteCount
bytes from this and appends them to sink
.charset
, and returns the string.byteCount
bytes from this, decodes them as charset
, and returns the
+ string.byteCount
bytes from this, decodes them as UTF-8, and returns the string.BufferedSource.readUtf8LineStrict()
, except this allows the caller to specify the longest
+ allowed match.byteCount
bytes, expanding it as
+ necessary.byteCount
bytes.newSize
by either adding new
+ capacity at the end or truncating the buffer at the end.offset
is readable at data[start]
.options
that is a prefix of this buffer, consumes it from
+ this buffer, and returns its index.sink
, using this to implement timeouts.out
.socket
.file
.path
.string
as UTF-8 when using ByteString.encodeUtf8(java.lang.String)
or Buffer.writeUtf8(String)
.string
as UTF-8 when using
+ BufferedSink.writeUtf8(String, int, int)
.byteCount
bytes from the head of this buffer.byteCount
bytes from this source.byteCount
bytes of this buffer as a byte string.source
, using this to implement timeouts.in
.file
.path
.socket
.String
by decoding the bytes using charset
.beginIndex
and ends at the specified endIndex
.InterruptedIOException
if the deadline has been reached or if the current
+ thread has been interrupted.AsyncTimeout.enter()
and AsyncTimeout.exit()
has exceeded the timeout.timeout
time before aborting an operation.0
for no timeout.ByteString
.String
by decoding the bytes as UTF-8
.monitor
until it is notified.OutputStream.write(byte[])
, this writes a complete byte array to
+ this sink.OutputStream.write(byte[], int, int)
, this writes byteCount
+ bytes of source
, starting at offset
.byteCount
bytes from source
and appends them to this sink.out
.byteCount
bytes from source
and appends them to this.source
and appends them to this sink.string
in charset
and writes it to this sink.beginIndex
up to endIndex
from string
in
+ charset
and writes it to this sink.out
.byteCount
bytes from this to out
.string
in UTF-8 and writes it to this sink.beginIndex
up to endIndex
from string
in
+ UTF-8 and writes it to this sink.codePoint
in UTF-8 and writes it to this sink.Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/index.html b/1.x/okio/index.html new file mode 100644 index 0000000000..252ae1269d --- /dev/null +++ b/1.x/okio/index.html @@ -0,0 +1,73 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+public class AsyncTimeout +extends Timeout+
Subclasses should override timedOut()
to take action when a timeout occurs. This method
+ will be invoked by the shared watchdog thread so it should not do any long-running operations.
+ Otherwise we risk starving other timeouts from being triggered.
+
+
Use sink(okio.Sink)
and source(okio.Source)
to apply this timeout to a stream. The returned value
+ will apply the timeout to each operation on the wrapped stream.
+
+
Callers should call enter()
before doing work that is subject to timeouts, and exit()
afterwards. The return value of exit()
indicates whether a timeout was triggered.
+ Note that the call to timedOut()
is asynchronous, and may be called after exit()
.
Constructor and Description | +
---|
AsyncTimeout() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+enter() |
+
boolean |
+exit()
+Returns true if the timeout occurred.
+ |
+
protected java.io.IOException |
+newTimeoutException(java.io.IOException cause)
+Returns an
+IOException to represent a timeout. |
+
Sink |
+sink(Sink sink)
+Returns a new sink that delegates to
+sink , using this to implement timeouts. |
+
Source |
+source(Source source)
+Returns a new source that delegates to
+source , using this to implement timeouts. |
+
protected void |
+timedOut()
+
+ |
+
clearDeadline, clearTimeout, deadline, deadlineNanoTime, deadlineNanoTime, hasDeadline, throwIfReached, timeout, timeoutNanos, waitUntilNotified
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public final void enter()+
public final boolean exit()+
protected void timedOut()+ +
public final Sink sink(Sink sink)+
sink
, using this to implement timeouts. This works
+ best if timedOut()
is overridden to interrupt sink
's current operation.public final Source source(Source source)+
source
, using this to implement timeouts. This
+ works best if timedOut()
is overridden to interrupt sink
's current operation.protected java.io.IOException newTimeoutException(@Nullable + java.io.IOException cause)+
IOException
to represent a timeout. By default this method returns InterruptedIOException
. If cause
is non-null it is set as the cause of the
+ returned exception.Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/Buffer.UnsafeCursor.html b/1.x/okio/okio/Buffer.UnsafeCursor.html new file mode 100644 index 0000000000..29441f8688 --- /dev/null +++ b/1.x/okio/okio/Buffer.UnsafeCursor.html @@ -0,0 +1,691 @@ + + + + + + +public static final class Buffer.UnsafeCursor
+extends java.lang.Object
+implements java.io.Closeable
+Most code should use Buffer
as a black box: a class that holds 0 or more bytes of
+ data with efficient APIs to append data to the end and to consume data from the front. Usually
+ this is also the most efficient way to use buffers because it allows Okio to employ several
+ optimizations, including:
+
+
These optimizations all leverage the way Okio stores data internally. Okio Buffers are
+ implemented using a doubly-linked list of segments. Each segment is a contiguous range within a
+ 8 KiB byte[]
. Each segment has two indexes, start
, the offset of the first
+ byte of the array containing application data, and end
, the offset of the first byte
+ beyond start
whose data is undefined.
+
+
New buffers are empty and have no segments: + +
+
+ Buffer buffer = new Buffer();
+
+
+ We append 7 bytes of data to the end of our empty buffer. Internally, the buffer allocates a
+ segment and writes its new data there. The lone segment has an 8 KiB byte array but only 7
+ bytes of data:
+
+
+
+ buffer.writeUtf8("sealion");
+
+ // [ 's', 'e', 'a', 'l', 'i', 'o', 'n', '?', '?', '?', ...]
+ // ^ ^
+ // start = 0 end = 7
+
+
+ When we read 4 bytes of data from the buffer, it finds its first segment and returns that data
+ to us. As bytes are read the data is consumed. The segment tracks this by adjusting its
+ internal indices.
+
+
+
+ buffer.readUtf8(4); // "seal"
+
+ // [ 's', 'e', 'a', 'l', 'i', 'o', 'n', '?', '?', '?', ...]
+ // ^ ^
+ // start = 4 end = 7
+
+
+ As we write data into a buffer we fill up its internal segments. When a write doesn't fit into
+ a buffer's last segment, additional segments are allocated and appended to the linked list of
+ segments. Each segment has its own start and end indexes tracking where the user's data begins
+ and ends.
+
+
+
+ Buffer xoxo = new Buffer();
+ xoxo.writeUtf8(Strings.repeat("xo", 5_000));
+
+ // [ 'x', 'o', 'x', 'o', 'x', 'o', 'x', 'o', ..., 'x', 'o', 'x', 'o']
+ // ^ ^
+ // start = 0 end = 8192
+ //
+ // [ 'x', 'o', 'x', 'o', ..., 'x', 'o', 'x', 'o', '?', '?', '?', ...]
+ // ^ ^
+ // start = 0 end = 1808
+
+
+ The start index is always inclusive and the end index is always
+ exclusive. The data preceding the start index is undefined, and the data
+ at and following the end index is undefined.
+
+ After the last byte of a segment has been read, that segment may be returned to an internal + segment pool. In addition to reducing the need to do garbage collection, segment pooling also + saves the JVM from needing to zero-fill byte arrays. Okio doesn't need to zero-fill its arrays + because it always writes memory before it reads it. But if you look at a segment in a debugger + you may see its effects. In this example, one of the "xoxo" segments above is reused in an + unrelated buffer: + +
+
+ Buffer abc = new Buffer();
+ abc.writeUtf8("abc");
+
+ // [ 'a', 'b', 'c', 'o', 'x', 'o', 'x', 'o', ...]
+ // ^ ^
+ // start = 0 end = 3
+
+
+ There is an optimization in Buffer.clone()
and other methods that allows two segments
+ to share the same underlying byte array. Clones can't write to the shared byte array; instead
+ they allocate a new (private) segment early.
+
+
+
+ Buffer nana = new Buffer();
+ nana.writeUtf8(Strings.repeat("na", 2_500));
+ nana.readUtf8(2); // "na"
+
+ // [ 'n', 'a', 'n', 'a', ..., 'n', 'a', 'n', 'a', '?', '?', '?', ...]
+ // ^ ^
+ // start = 0 end = 5000
+
+ nana2 = nana.clone();
+ nana2.writeUtf8("batman");
+
+ // [ 'n', 'a', 'n', 'a', ..., 'n', 'a', 'n', 'a', '?', '?', '?', ...]
+ // ^ ^
+ // start = 0 end = 5000
+ //
+ // [ 'b', 'a', 't', 'm', 'a', 'n', '?', '?', '?', ...]
+ // ^ ^
+ // start = 0 end = 7
+
+
+ Segments are not shared when the shared region is small (ie. less than 1 KiB). This is intended
+ to prevent fragmentation in sharing-heavy use cases.
+
+ This class exposes privileged access to the internal byte arrays of a buffer. A cursor
+ either references the data of a single segment, it is before the first segment (offset == -1
), or it is after the last segment (offset == buffer.size
).
+
+
Call seek(long)
to move the cursor to the segment that contains a specified offset. After
+ seeking, data
references the segment's internal byte array, start
is the
+ segment's start and end
is its end.
+
+
Call next()
to advance the cursor to the next segment. This returns -1 if there are
+ no further segments in the buffer.
+
+
Use Buffer.readUnsafe()
to create a cursor to read buffer data and Buffer.readAndWriteUnsafe()
to create a cursor to read and write buffer data. In either case,
+ always call close()
when done with a cursor. This is convenient with Java 7's
+ try-with-resources syntax. In this example we read all of the bytes in a buffer into a byte
+ array:
+
+
+
+ byte[] bufferBytes = new byte[(int) buffer.size()];
+
+ try (UnsafeCursor cursor = buffer.readUnsafe()) {
+ while (cursor.next() != -1) {
+ System.arraycopy(cursor.data, cursor.start,
+ bufferBytes, (int) cursor.offset, cursor.end - cursor.start);
+ }
+ }
+
+
+ Change the capacity of a buffer with resizeBuffer(long)
. This is only permitted for
+ read+write cursors. The buffer's size always changes from the end: shrinking it removes bytes
+ from the end; growing it adds capacity to the end.
+
+
Most application developers should avoid this API. Those that must use this API should + respect these warnings. + +
Don't mutate a cursor. This class has public, non-final fields because that + is convenient for low-level I/O frameworks. Never assign values to these fields; instead use + the cursor API to adjust these. + +
Never mutate data
unless you have read+write access. You are on the
+ honor system to never write the buffer in read-only mode. Read-only mode may be more efficient
+ than read+write mode because it does not need to make private copies of shared segments.
+
+
Only access data in [start..end)
. Other data in the byte array
+ is undefined! It may contain private or sensitive data from other parts of your process.
+
+
Always fill the new capacity when you grow a buffer. New capacity is not
+ zero-filled and may contain data from other parts of your process. Avoid leaking this
+ information by always writing something to the newly-allocated capacity. Do not assume that
+ new capacity will be filled with 0
; it will not be.
+
+
Do not access a buffer while is being accessed by a cursor. Even simple
+ read-only operations like Buffer.clone()
are unsafe because they mark segments as shared.
+
+
Do not hard-code the segment size in your application. It is possible that + segment sizes will change with advances in hardware. Future versions of Okio may even have + heterogeneous segment sizes. + +
These warnings are intended to help you to use this API safely. It's here for developers
+ that need absolutely the most throughput. Since that's you, here's one final performance tip.
+ You can reuse instances of this class if you like. Use the overloads of Buffer.readUnsafe()
and
+ Buffer.readAndWriteUnsafe()
that take a cursor and close it after use.
Modifier and Type | +Field and Description | +
---|---|
Buffer |
+buffer |
+
byte[] |
+data |
+
int |
+end |
+
long |
+offset |
+
boolean |
+readWrite |
+
int |
+start |
+
Constructor and Description | +
---|
UnsafeCursor() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+close() |
+
long |
+expandBuffer(int minByteCount)
+Grow the buffer by adding a contiguous range of capacity in a single
+ segment.
+ |
+
int |
+next()
+Seeks to the next range of bytes, advancing the offset by
+end - start . |
+
long |
+resizeBuffer(long newSize)
+Change the size of the buffer so that it equals
+newSize by either adding new
+ capacity at the end or truncating the buffer at the end. |
+
int |
+seek(long offset)
+Reposition the cursor so that the data at
+offset is readable at data[start] . |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Buffer buffer+
public boolean readWrite+
public long offset+
public byte[] data+
public int start+
public int end+
public final int next()+
end - start
. Returns the
+ size of the readable range (at least 1), or -1 if we have reached the end of the buffer and
+ there are no more bytes to read.public final int seek(long offset)+
offset
is readable at data[start]
.
+ Returns the number of bytes readable in data
(at least 1), or -1 if there are no data
+ to read.public final long resizeBuffer(long newSize)+
newSize
by either adding new
+ capacity at the end or truncating the buffer at the end. Newly added capacity may span
+ multiple segments.
+
+ As a side-effect this cursor will seek
. If the buffer is being enlarged it
+ will move offset
to the first byte of newly-added capacity. This is the size of the
+ buffer prior to the resizeBuffer()
call. If the buffer is being shrunk it will move
+ offset
to the end of the buffer.
+
+
Warning: it is the caller’s responsibility to write new data to every byte of the + newly-allocated capacity. Failure to do so may cause serious security problems as the data + in the returned buffers is not zero filled. Buffers may contain dirty pooled segments that + hold very sensitive data from other parts of the current process.
public final long expandBuffer(int minByteCount)+
minByteCount
bytes but may add up to a full segment of
+ additional capacity.
+
+ As a side-effect this cursor will seek
. It will move offset
to the
+ first byte of newly-added capacity. This is the size of the buffer prior to the expandBuffer()
call.
+
+
If minByteCount
bytes are available in the buffer's current tail segment that will
+ be used; otherwise another segment will be allocated and appended. In either case this
+ returns the number of bytes of capacity added to this buffer.
+
+
Warning: it is the caller’s responsibility to either write new data to every byte of the
+ newly-allocated capacity, or to shrink
the buffer to the data written.
+ Failure to do so may cause serious security problems as the data in the returned buffers is
+ not zero filled. Buffers may contain dirty pooled segments that hold very sensitive data from
+ other parts of the current process.
minByteCount
- the size of the contiguous capacity. Must be positive and not greater
+ than the capacity size of a single segment (8 KiB).minByteCount
.public void close()+
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/Buffer.html b/1.x/okio/okio/Buffer.html new file mode 100644 index 0000000000..1c0ca73d2b --- /dev/null +++ b/1.x/okio/okio/Buffer.html @@ -0,0 +1,2926 @@ + + + + + + +public final class Buffer +extends java.lang.Object +implements BufferedSource, BufferedSink, java.lang.Cloneable, java.nio.channels.ByteChannel+
Moving data from one buffer to another is fast. Instead + of copying bytes from one place in memory to another, this class just changes + ownership of the underlying byte arrays. + +
This buffer grows with your data. Just like ArrayList, + each buffer starts small. It consumes only the memory it needs to. + +
This buffer pools its byte arrays. When you allocate a + byte array in Java, the runtime must zero-fill the requested array before + returning it to you. Even if you're going to write over that space anyway. + This class avoids zero-fill and GC churn by pooling byte arrays.
Modifier and Type | +Class and Description | +
---|---|
static class |
+Buffer.UnsafeCursor
+A handle to the underlying data in a buffer.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
Buffer |
+buffer()
+Returns this source's internal buffer.
+ |
+
void |
+clear()
+Discards all bytes in this buffer.
+ |
+
Buffer |
+clone()
+Returns a deep copy of this buffer.
+ |
+
void |
+close()
+Closes this source and releases the resources held by this source.
+ |
+
long |
+completeSegmentByteCount()
+Returns the number of bytes in segments that are not writable.
+ |
+
Buffer |
+copyTo(Buffer out,
+ long offset,
+ long byteCount)
+Copy
+byteCount bytes from this, starting at offset , to out . |
+
Buffer |
+copyTo(java.io.OutputStream out)
+Copy the contents of this to
+out . |
+
Buffer |
+copyTo(java.io.OutputStream out,
+ long offset,
+ long byteCount)
+Copy
+byteCount bytes from this, starting at offset , to
+ out . |
+
BufferedSink |
+emit()
+Writes all buffered data to the underlying sink, if one exists.
+ |
+
Buffer |
+emitCompleteSegments()
+Writes complete segments to the underlying sink, if one exists.
+ |
+
boolean |
+equals(java.lang.Object o) |
+
boolean |
+exhausted()
+Returns true if there are no more bytes in this source.
+ |
+
void |
+flush()
+Writes all buffered data to the underlying sink, if one exists.
+ |
+
byte |
+getByte(long pos)
+Returns the byte at
+pos . |
+
int |
+hashCode() |
+
ByteString |
+hmacSha1(ByteString key)
+Returns the 160-bit SHA-1 HMAC of this buffer.
+ |
+
ByteString |
+hmacSha256(ByteString key)
+Returns the 256-bit SHA-256 HMAC of this buffer.
+ |
+
ByteString |
+hmacSha512(ByteString key)
+Returns the 512-bit SHA-512 HMAC of this buffer.
+ |
+
long |
+indexOf(byte b)
+Equivalent to
+indexOf(b, 0) . |
+
long |
+indexOf(byte b,
+ long fromIndex)
+Returns the index of
+b in this at or beyond fromIndex , or
+ -1 if this buffer does not contain b in that range. |
+
long |
+indexOf(byte b,
+ long fromIndex,
+ long toIndex)
+Returns the index of
+b if it is found in the range of fromIndex inclusive
+ to toIndex exclusive. |
+
long |
+indexOf(ByteString bytes)
+Equivalent to
+indexOf(bytes, 0) . |
+
long |
+indexOf(ByteString bytes,
+ long fromIndex)
+Returns the index of the first match for
+bytes in the buffer at or after fromIndex . |
+
long |
+indexOfElement(ByteString targetBytes)
+Equivalent to
+indexOfElement(targetBytes, 0) . |
+
long |
+indexOfElement(ByteString targetBytes,
+ long fromIndex)
+Returns the first index in this buffer that is at or after
+fromIndex and that contains
+ any of the bytes in targetBytes . |
+
java.io.InputStream |
+inputStream()
+Returns an input stream that reads from this source.
+ |
+
boolean |
+isOpen() |
+
ByteString |
+md5()
+Returns the 128-bit MD5 hash of this buffer.
+ |
+
java.io.OutputStream |
+outputStream()
+Returns an output stream that writes to this sink.
+ |
+
boolean |
+rangeEquals(long offset,
+ ByteString bytes)
+Returns true if the bytes at
+offset in this source equal bytes . |
+
boolean |
+rangeEquals(long offset,
+ ByteString bytes,
+ int bytesOffset,
+ int byteCount)
+Returns true if
+byteCount bytes at offset in this source equal bytes
+ at bytesOffset . |
+
long |
+read(Buffer sink,
+ long byteCount)
+Removes at least 1, and up to
+byteCount bytes from this and appends
+ them to sink . |
+
int |
+read(byte[] sink)
+Removes up to
+sink.length bytes from this and copies them into sink . |
+
int |
+read(byte[] sink,
+ int offset,
+ int byteCount)
+Removes up to
+byteCount bytes from this and copies them into sink at offset . |
+
int |
+read(java.nio.ByteBuffer sink) |
+
long |
+readAll(Sink sink)
+Removes all bytes from this and appends them to
+sink . |
+
Buffer.UnsafeCursor |
+readAndWriteUnsafe() |
+
Buffer.UnsafeCursor |
+readAndWriteUnsafe(Buffer.UnsafeCursor unsafeCursor) |
+
byte |
+readByte()
+Removes a byte from this source and returns it.
+ |
+
byte[] |
+readByteArray()
+Removes all bytes from this and returns them as a byte array.
+ |
+
byte[] |
+readByteArray(long byteCount)
+Removes
+byteCount bytes from this and returns them as a byte array. |
+
ByteString |
+readByteString()
+Removes all bytes bytes from this and returns them as a byte string.
+ |
+
ByteString |
+readByteString(long byteCount)
+Removes
+byteCount bytes from this and returns them as a byte string. |
+
long |
+readDecimalLong()
+Reads a long from this source in signed decimal form (i.e., as a string in base 10 with
+ optional leading '-').
+ |
+
Buffer |
+readFrom(java.io.InputStream in)
+Read and exhaust bytes from
+in to this. |
+
Buffer |
+readFrom(java.io.InputStream in,
+ long byteCount)
+Read
+byteCount bytes from in to this. |
+
void |
+readFully(Buffer sink,
+ long byteCount)
+Removes exactly
+byteCount bytes from this and appends them to sink . |
+
void |
+readFully(byte[] sink)
+Removes exactly
+sink.length bytes from this and copies them into sink . |
+
long |
+readHexadecimalUnsignedLong()
+Reads a long form this source in hexadecimal form (i.e., as a string in base 16).
+ |
+
int |
+readInt()
+Removes four bytes from this source and returns a big-endian int.
+ |
+
int |
+readIntLe()
+Removes four bytes from this source and returns a little-endian int.
+ |
+
long |
+readLong()
+Removes eight bytes from this source and returns a big-endian long.
+ |
+
long |
+readLongLe()
+Removes eight bytes from this source and returns a little-endian long.
+ |
+
short |
+readShort()
+Removes two bytes from this source and returns a big-endian short.
+ |
+
short |
+readShortLe()
+Removes two bytes from this source and returns a little-endian short.
+ |
+
java.lang.String |
+readString(java.nio.charset.Charset charset)
+Removes all bytes from this, decodes them as
+charset , and returns the string. |
+
java.lang.String |
+readString(long byteCount,
+ java.nio.charset.Charset charset)
+Removes
+byteCount bytes from this, decodes them as charset , and returns the
+ string. |
+
Buffer.UnsafeCursor |
+readUnsafe() |
+
Buffer.UnsafeCursor |
+readUnsafe(Buffer.UnsafeCursor unsafeCursor) |
+
java.lang.String |
+readUtf8()
+Removes all bytes from this, decodes them as UTF-8, and returns the string.
+ |
+
java.lang.String |
+readUtf8(long byteCount)
+Removes
+byteCount bytes from this, decodes them as UTF-8, and returns the string. |
+
int |
+readUtf8CodePoint()
+Removes and returns a single UTF-8 code point, reading between 1 and 4 bytes as necessary.
+ |
+
java.lang.String |
+readUtf8Line()
+Removes and returns characters up to but not including the next line break.
+ |
+
java.lang.String |
+readUtf8LineStrict()
+Removes and returns characters up to but not including the next line break.
+ |
+
java.lang.String |
+readUtf8LineStrict(long limit)
+Like
+BufferedSource.readUtf8LineStrict() , except this allows the caller to specify the longest
+ allowed match. |
+
boolean |
+request(long byteCount)
+Returns true when the buffer contains at least
+byteCount bytes, expanding it as
+ necessary. |
+
void |
+require(long byteCount)
+Returns when the buffer contains at least
+byteCount bytes. |
+
int |
+select(Options options)
+Finds the first string in
+options that is a prefix of this buffer, consumes it from
+ this buffer, and returns its index. |
+
ByteString |
+sha1()
+Returns the 160-bit SHA-1 hash of this buffer.
+ |
+
ByteString |
+sha256()
+Returns the 256-bit SHA-256 hash of this buffer.
+ |
+
ByteString |
+sha512()
+Returns the 512-bit SHA-512 hash of this buffer.
+ |
+
long |
+size()
+Returns the number of bytes currently in this buffer.
+ |
+
void |
+skip(long byteCount)
+Discards
+byteCount bytes from the head of this buffer. |
+
ByteString |
+snapshot()
+Returns an immutable copy of this buffer as a byte string.
+ |
+
ByteString |
+snapshot(int byteCount)
+Returns an immutable copy of the first
+byteCount bytes of this buffer as a byte string. |
+
Timeout |
+timeout()
+Returns the timeout for this source.
+ |
+
java.lang.String |
+toString()
+Returns a human-readable string that describes the contents of this buffer.
+ |
+
void |
+write(Buffer source,
+ long byteCount)
+Removes
+byteCount bytes from source and appends them to this. |
+
Buffer |
+write(byte[] source)
+Like
+OutputStream.write(byte[]) , this writes a complete byte array to
+ this sink. |
+
Buffer |
+write(byte[] source,
+ int offset,
+ int byteCount)
+Like
+OutputStream.write(byte[], int, int) , this writes byteCount
+ bytes of source , starting at offset . |
+
int |
+write(java.nio.ByteBuffer source) |
+
Buffer |
+write(ByteString byteString) |
+
BufferedSink |
+write(Source source,
+ long byteCount)
+Removes
+byteCount bytes from source and appends them to this sink. |
+
long |
+writeAll(Source source)
+Removes all bytes from
+source and appends them to this sink. |
+
Buffer |
+writeByte(int b)
+Writes a byte to this sink.
+ |
+
Buffer |
+writeDecimalLong(long v)
+Writes a long to this sink in signed decimal form (i.e., as a string in base 10).
+ |
+
Buffer |
+writeHexadecimalUnsignedLong(long v)
+Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).
+ |
+
Buffer |
+writeInt(int i)
+Writes a big-endian int to this sink using four bytes.
+ |
+
Buffer |
+writeIntLe(int i)
+Writes a little-endian int to this sink using four bytes.
+ |
+
Buffer |
+writeLong(long v)
+Writes a big-endian long to this sink using eight bytes.
+ |
+
Buffer |
+writeLongLe(long v)
+Writes a little-endian long to this sink using eight bytes.
+ |
+
Buffer |
+writeShort(int s)
+Writes a big-endian short to this sink using two bytes.
+ |
+
Buffer |
+writeShortLe(int s)
+Writes a little-endian short to this sink using two bytes.
+ |
+
Buffer |
+writeString(java.lang.String string,
+ java.nio.charset.Charset charset)
+Encodes
+string in charset and writes it to this sink. |
+
Buffer |
+writeString(java.lang.String string,
+ int beginIndex,
+ int endIndex,
+ java.nio.charset.Charset charset)
+Encodes the characters at
+beginIndex up to endIndex from string in
+ charset and writes it to this sink. |
+
Buffer |
+writeTo(java.io.OutputStream out)
+Write the contents of this to
+out . |
+
Buffer |
+writeTo(java.io.OutputStream out,
+ long byteCount)
+Write
+byteCount bytes from this to out . |
+
Buffer |
+writeUtf8(java.lang.String string)
+Encodes
+string in UTF-8 and writes it to this sink. |
+
Buffer |
+writeUtf8(java.lang.String string,
+ int beginIndex,
+ int endIndex)
+Encodes the characters at
+beginIndex up to endIndex from string in
+ UTF-8 and writes it to this sink. |
+
Buffer |
+writeUtf8CodePoint(int codePoint)
+Encodes
+codePoint in UTF-8 and writes it to this sink. |
+
finalize, getClass, notify, notifyAll, wait, wait, wait
public final long size()+
public Buffer buffer()+
BufferedSource
buffer
in interface BufferedSink
buffer
in interface BufferedSource
public java.io.OutputStream outputStream()+
BufferedSink
outputStream
in interface BufferedSink
public Buffer emitCompleteSegments()+
BufferedSink
BufferedSink.flush()
, but
+ weaker. Use this to limit the memory held in the buffer to a single segment. Typically
+ application code will not need to call this: it is only necessary when application code writes
+ directly to this sink's buffer.
+
+ BufferedSink b0 = new Buffer();
+ BufferedSink b1 = Okio.buffer(b0);
+ BufferedSink b2 = Okio.buffer(b1);
+
+ b2.buffer().write(new byte[20_000]);
+ assertEquals(20_000, b2.buffer().size());
+ assertEquals( 0, b1.buffer().size());
+ assertEquals( 0, b0.buffer().size());
+
+ b2.emitCompleteSegments();
+ assertEquals( 3_616, b2.buffer().size());
+ assertEquals( 0, b1.buffer().size());
+ assertEquals(16_384, b0.buffer().size()); // This example assumes 8192 byte segments.
+
emitCompleteSegments
in interface BufferedSink
public BufferedSink emit()+
BufferedSink
BufferedSink.flush()
, but
+ weaker. Call this before this buffered sink goes out of scope so that its data can reach its
+ destination.
+
+ BufferedSink b0 = new Buffer();
+ BufferedSink b1 = Okio.buffer(b0);
+ BufferedSink b2 = Okio.buffer(b1);
+
+ b2.writeUtf8("hello");
+ assertEquals(5, b2.buffer().size());
+ assertEquals(0, b1.buffer().size());
+ assertEquals(0, b0.buffer().size());
+
+ b2.emit();
+ assertEquals(0, b2.buffer().size());
+ assertEquals(5, b1.buffer().size());
+ assertEquals(0, b0.buffer().size());
+
+ b1.emit();
+ assertEquals(0, b2.buffer().size());
+ assertEquals(0, b1.buffer().size());
+ assertEquals(5, b0.buffer().size());
+
emit
in interface BufferedSink
public boolean exhausted()+
BufferedSource
exhausted
in interface BufferedSource
public void require(long byteCount) + throws java.io.EOFException+
BufferedSource
byteCount
bytes. Throws an
+ EOFException
if the source is exhausted before the required bytes can be read.require
in interface BufferedSource
java.io.EOFException
public boolean request(long byteCount)+
BufferedSource
byteCount
bytes, expanding it as
+ necessary. Returns false if the source is exhausted before the requested bytes can be read.request
in interface BufferedSource
public java.io.InputStream inputStream()+
BufferedSource
inputStream
in interface BufferedSource
public final Buffer copyTo(java.io.OutputStream out) + throws java.io.IOException+
out
.java.io.IOException
public final Buffer copyTo(java.io.OutputStream out, + long offset, + long byteCount) + throws java.io.IOException+
byteCount
bytes from this, starting at offset
, to
+ out
.java.io.IOException
public final Buffer copyTo(Buffer out, + long offset, + long byteCount)+
byteCount
bytes from this, starting at offset
, to out
.public final Buffer writeTo(java.io.OutputStream out) + throws java.io.IOException+
out
.java.io.IOException
public final Buffer writeTo(java.io.OutputStream out, + long byteCount) + throws java.io.IOException+
byteCount
bytes from this to out
.java.io.IOException
public final Buffer readFrom(java.io.InputStream in) + throws java.io.IOException+
in
to this.java.io.IOException
public final Buffer readFrom(java.io.InputStream in, + long byteCount) + throws java.io.IOException+
byteCount
bytes from in
to this.java.io.IOException
public final long completeSegmentByteCount()+
public byte readByte()+
BufferedSource
readByte
in interface BufferedSource
public final byte getByte(long pos)+
pos
.public short readShort()+
BufferedSource
+
+ Buffer buffer = new Buffer()
+ .writeByte(0x7f)
+ .writeByte(0xff)
+ .writeByte(0x00)
+ .writeByte(0x0f);
+ assertEquals(4, buffer.size());
+
+ assertEquals(32767, buffer.readShort());
+ assertEquals(2, buffer.size());
+
+ assertEquals(15, buffer.readShort());
+ assertEquals(0, buffer.size());
+
readShort
in interface BufferedSource
public int readInt()+
BufferedSource
+
+ Buffer buffer = new Buffer()
+ .writeByte(0x7f)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x0f);
+ assertEquals(8, buffer.size());
+
+ assertEquals(2147483647, buffer.readInt());
+ assertEquals(4, buffer.size());
+
+ assertEquals(15, buffer.readInt());
+ assertEquals(0, buffer.size());
+
readInt
in interface BufferedSource
public long readLong()+
BufferedSource
+
+ Buffer buffer = new Buffer()
+ .writeByte(0x7f)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x0f);
+ assertEquals(16, buffer.size());
+
+ assertEquals(9223372036854775807L, buffer.readLong());
+ assertEquals(8, buffer.size());
+
+ assertEquals(15, buffer.readLong());
+ assertEquals(0, buffer.size());
+
readLong
in interface BufferedSource
public short readShortLe()+
BufferedSource
+
+ Buffer buffer = new Buffer()
+ .writeByte(0xff)
+ .writeByte(0x7f)
+ .writeByte(0x0f)
+ .writeByte(0x00);
+ assertEquals(4, buffer.size());
+
+ assertEquals(32767, buffer.readShortLe());
+ assertEquals(2, buffer.size());
+
+ assertEquals(15, buffer.readShortLe());
+ assertEquals(0, buffer.size());
+
readShortLe
in interface BufferedSource
public int readIntLe()+
BufferedSource
+
+ Buffer buffer = new Buffer()
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0x7f)
+ .writeByte(0x0f)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00);
+ assertEquals(8, buffer.size());
+
+ assertEquals(2147483647, buffer.readIntLe());
+ assertEquals(4, buffer.size());
+
+ assertEquals(15, buffer.readIntLe());
+ assertEquals(0, buffer.size());
+
readIntLe
in interface BufferedSource
public long readLongLe()+
BufferedSource
+
+ Buffer buffer = new Buffer()
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0x7f)
+ .writeByte(0x0f)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00);
+ assertEquals(16, buffer.size());
+
+ assertEquals(9223372036854775807L, buffer.readLongLe());
+ assertEquals(8, buffer.size());
+
+ assertEquals(15, buffer.readLongLe());
+ assertEquals(0, buffer.size());
+
readLongLe
in interface BufferedSource
public long readDecimalLong()+
BufferedSource
+
+ Buffer buffer = new Buffer()
+ .writeUtf8("8675309 -123 00001");
+
+ assertEquals(8675309L, buffer.readDecimalLong());
+ assertEquals(' ', buffer.readByte());
+ assertEquals(-123L, buffer.readDecimalLong());
+ assertEquals(' ', buffer.readByte());
+ assertEquals(1L, buffer.readDecimalLong());
+
readDecimalLong
in interface BufferedSource
public long readHexadecimalUnsignedLong()+
BufferedSource
+
+ Buffer buffer = new Buffer()
+ .writeUtf8("ffff CAFEBABE 10");
+
+ assertEquals(65535L, buffer.readHexadecimalUnsignedLong());
+ assertEquals(' ', buffer.readByte());
+ assertEquals(0xcafebabeL, buffer.readHexadecimalUnsignedLong());
+ assertEquals(' ', buffer.readByte());
+ assertEquals(0x10L, buffer.readHexadecimalUnsignedLong());
+
readHexadecimalUnsignedLong
in interface BufferedSource
public ByteString readByteString()+
BufferedSource
readByteString
in interface BufferedSource
public ByteString readByteString(long byteCount) + throws java.io.EOFException+
BufferedSource
byteCount
bytes from this and returns them as a byte string.readByteString
in interface BufferedSource
java.io.EOFException
public int select(Options options)+
BufferedSource
options
that is a prefix of this buffer, consumes it from
+ this buffer, and returns its index. If no byte string in options
is a prefix of this
+ buffer this returns -1 and no bytes are consumed.
+
+ This can be used as an alternative to BufferedSource.readByteString()
or even BufferedSource.readUtf8()
if
+ the set of expected values is known in advance.
+
+ Options FIELDS = Options.of(
+ ByteString.encodeUtf8("depth="),
+ ByteString.encodeUtf8("height="),
+ ByteString.encodeUtf8("width="));
+
+ Buffer buffer = new Buffer()
+ .writeUtf8("width=640\n")
+ .writeUtf8("height=480\n");
+
+ assertEquals(2, buffer.select(FIELDS));
+ assertEquals(640, buffer.readDecimalLong());
+ assertEquals('\n', buffer.readByte());
+ assertEquals(1, buffer.select(FIELDS));
+ assertEquals(480, buffer.readDecimalLong());
+ assertEquals('\n', buffer.readByte());
+
select
in interface BufferedSource
public void readFully(Buffer sink, + long byteCount) + throws java.io.EOFException+
BufferedSource
byteCount
bytes from this and appends them to sink
. Throws an
+ EOFException
if the requested number of bytes cannot be read.readFully
in interface BufferedSource
java.io.EOFException
public long readAll(Sink sink) + throws java.io.IOException+
BufferedSource
sink
. Returns the total number of bytes
+ written to sink
which will be 0 if this is exhausted.readAll
in interface BufferedSource
java.io.IOException
public java.lang.String readUtf8()+
BufferedSource
+
+ Buffer buffer = new Buffer()
+ .writeUtf8("Uh uh uh!")
+ .writeByte(' ')
+ .writeUtf8("You didn't say the magic word!");
+
+ assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());
+ assertEquals(0, buffer.size());
+
+ assertEquals("", buffer.readUtf8());
+ assertEquals(0, buffer.size());
+
readUtf8
in interface BufferedSource
public java.lang.String readUtf8(long byteCount) + throws java.io.EOFException+
BufferedSource
byteCount
bytes from this, decodes them as UTF-8, and returns the string.
+
+
+ Buffer buffer = new Buffer()
+ .writeUtf8("Uh uh uh!")
+ .writeByte(' ')
+ .writeUtf8("You didn't say the magic word!");
+ assertEquals(40, buffer.size());
+
+ assertEquals("Uh uh uh! You ", buffer.readUtf8(14));
+ assertEquals(26, buffer.size());
+
+ assertEquals("didn't say the", buffer.readUtf8(14));
+ assertEquals(12, buffer.size());
+
+ assertEquals(" magic word!", buffer.readUtf8(12));
+ assertEquals(0, buffer.size());
+
readUtf8
in interface BufferedSource
java.io.EOFException
public java.lang.String readString(java.nio.charset.Charset charset)+
BufferedSource
charset
, and returns the string.readString
in interface BufferedSource
public java.lang.String readString(long byteCount, + java.nio.charset.Charset charset) + throws java.io.EOFException+
BufferedSource
byteCount
bytes from this, decodes them as charset
, and returns the
+ string.readString
in interface BufferedSource
java.io.EOFException
@Nullable +public java.lang.String readUtf8Line() + throws java.io.EOFException+
BufferedSource
"\n"
or "\r\n"
; these characters are not included in the result.
+
+
+ Buffer buffer = new Buffer()
+ .writeUtf8("I'm a hacker!\n")
+ .writeUtf8("That's what I said: you're a nerd.\n")
+ .writeUtf8("I prefer to be called a hacker!\n");
+ assertEquals(81, buffer.size());
+
+ assertEquals("I'm a hacker!", buffer.readUtf8Line());
+ assertEquals(67, buffer.size());
+
+ assertEquals("That's what I said: you're a nerd.", buffer.readUtf8Line());
+ assertEquals(32, buffer.size());
+
+ assertEquals("I prefer to be called a hacker!", buffer.readUtf8Line());
+ assertEquals(0, buffer.size());
+
+ assertEquals(null, buffer.readUtf8Line());
+ assertEquals(0, buffer.size());
+
+
+ On the end of the stream this method returns null, just like BufferedReader
. If the source doesn't end with a line break then an implicit line
+ break is assumed. Null is returned once the source is exhausted. Use this for human-generated
+ data, where a trailing line break is optional.
readUtf8Line
in interface BufferedSource
java.io.EOFException
public java.lang.String readUtf8LineStrict() + throws java.io.EOFException+
BufferedSource
"\n"
or "\r\n"
; these characters are not included in the result.
+
+ On the end of the stream this method throws. Every call must consume either
+ '\r\n' or '\n'. If these characters are absent in the stream, an EOFException
+ is thrown. Use this for machine-generated data where a missing line break implies truncated
+ input.
readUtf8LineStrict
in interface BufferedSource
java.io.EOFException
public java.lang.String readUtf8LineStrict(long limit) + throws java.io.EOFException+
BufferedSource
BufferedSource.readUtf8LineStrict()
, except this allows the caller to specify the longest
+ allowed match. Use this to protect against streams that may not include
+ "\n"
or "\r\n"
.
+
+ The returned string will have at most limit
UTF-8 bytes, and the maximum number
+ of bytes scanned is limit + 2
. If limit == 0
this will always throw
+ an EOFException
because no bytes will be scanned.
+
+
This method is safe. No bytes are discarded if the match fails, and the caller is free + to try another match:
+
+ Buffer buffer = new Buffer();
+ buffer.writeUtf8("12345\r\n");
+
+ // This will throw! There must be \r\n or \n at the limit or before it.
+ buffer.readUtf8LineStrict(4);
+
+ // No bytes have been consumed so the caller can retry.
+ assertEquals("12345", buffer.readUtf8LineStrict(5));
+
readUtf8LineStrict
in interface BufferedSource
java.io.EOFException
public int readUtf8CodePoint() + throws java.io.EOFException+
BufferedSource
If this source is exhausted before a complete code point can be read, this throws an EOFException
and consumes no input.
+
+
If this source doesn't start with a properly-encoded UTF-8 code point, this method will
+ remove 1 or more non-UTF-8 bytes and return the replacement character (U+FFFD
). This
+ covers encoding problems (the input is not properly-encoded UTF-8), characters out of range
+ (beyond the 0x10ffff limit of Unicode), code points for UTF-16 surrogates (U+d800..U+dfff) and
+ overlong encodings (such as 0xc080
for the NUL character in modified UTF-8).
readUtf8CodePoint
in interface BufferedSource
java.io.EOFException
public byte[] readByteArray()+
BufferedSource
readByteArray
in interface BufferedSource
public byte[] readByteArray(long byteCount) + throws java.io.EOFException+
BufferedSource
byteCount
bytes from this and returns them as a byte array.readByteArray
in interface BufferedSource
java.io.EOFException
public int read(byte[] sink)+
BufferedSource
sink.length
bytes from this and copies them into sink
. Returns
+ the number of bytes read, or -1 if this source is exhausted.read
in interface BufferedSource
public void readFully(byte[] sink) + throws java.io.EOFException+
BufferedSource
sink.length
bytes from this and copies them into sink
. Throws
+ an EOFException
if the requested number of bytes cannot be read.readFully
in interface BufferedSource
java.io.EOFException
public int read(byte[] sink, + int offset, + int byteCount)+
BufferedSource
byteCount
bytes from this and copies them into sink
at offset
. Returns the number of bytes read, or -1 if this source is exhausted.read
in interface BufferedSource
public int read(java.nio.ByteBuffer sink) + throws java.io.IOException+
read
in interface java.nio.channels.ReadableByteChannel
java.io.IOException
public final void clear()+
public void skip(long byteCount) + throws java.io.EOFException+
byteCount
bytes from the head of this buffer.skip
in interface BufferedSource
java.io.EOFException
public Buffer write(ByteString byteString)+
write
in interface BufferedSink
public Buffer writeUtf8(java.lang.String string)+
BufferedSink
string
in UTF-8 and writes it to this sink.
+
+ Buffer buffer = new Buffer();
+ buffer.writeUtf8("Uh uh uh!");
+ buffer.writeByte(' ');
+ buffer.writeUtf8("You didn't say the magic word!");
+
+ assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());
+
writeUtf8
in interface BufferedSink
public Buffer writeUtf8(java.lang.String string, + int beginIndex, + int endIndex)+
BufferedSink
beginIndex
up to endIndex
from string
in
+ UTF-8 and writes it to this sink.
+
+ Buffer buffer = new Buffer();
+ buffer.writeUtf8("I'm a hacker!\n", 6, 12);
+ buffer.writeByte(' ');
+ buffer.writeUtf8("That's what I said: you're a nerd.\n", 29, 33);
+ buffer.writeByte(' ');
+ buffer.writeUtf8("I prefer to be called a hacker!\n", 24, 31);
+
+ assertEquals("hacker nerd hacker!", buffer.readUtf8());
+
writeUtf8
in interface BufferedSink
public Buffer writeUtf8CodePoint(int codePoint)+
BufferedSink
codePoint
in UTF-8 and writes it to this sink.writeUtf8CodePoint
in interface BufferedSink
public Buffer writeString(java.lang.String string, + java.nio.charset.Charset charset)+
BufferedSink
string
in charset
and writes it to this sink.writeString
in interface BufferedSink
public Buffer writeString(java.lang.String string, + int beginIndex, + int endIndex, + java.nio.charset.Charset charset)+
BufferedSink
beginIndex
up to endIndex
from string
in
+ charset
and writes it to this sink.writeString
in interface BufferedSink
public Buffer write(byte[] source)+
BufferedSink
OutputStream.write(byte[])
, this writes a complete byte array to
+ this sink.write
in interface BufferedSink
public Buffer write(byte[] source, + int offset, + int byteCount)+
BufferedSink
OutputStream.write(byte[], int, int)
, this writes byteCount
+ bytes of source
, starting at offset
.write
in interface BufferedSink
public int write(java.nio.ByteBuffer source) + throws java.io.IOException+
write
in interface java.nio.channels.WritableByteChannel
java.io.IOException
public long writeAll(Source source) + throws java.io.IOException+
BufferedSink
source
and appends them to this sink. Returns the
+ number of bytes read which will be 0 if source
is exhausted.writeAll
in interface BufferedSink
java.io.IOException
public BufferedSink write(Source source, + long byteCount) + throws java.io.IOException+
BufferedSink
byteCount
bytes from source
and appends them to this sink.write
in interface BufferedSink
java.io.IOException
public Buffer writeByte(int b)+
BufferedSink
writeByte
in interface BufferedSink
public Buffer writeShort(int s)+
BufferedSink
+
+ Buffer buffer = new Buffer();
+ buffer.writeShort(32767);
+ buffer.writeShort(15);
+
+ assertEquals(4, buffer.size());
+ assertEquals((byte) 0x7f, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x0f, buffer.readByte());
+ assertEquals(0, buffer.size());
+
writeShort
in interface BufferedSink
public Buffer writeShortLe(int s)+
BufferedSink
+
+ Buffer buffer = new Buffer();
+ buffer.writeShortLe(32767);
+ buffer.writeShortLe(15);
+
+ assertEquals(4, buffer.size());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0x7f, buffer.readByte());
+ assertEquals((byte) 0x0f, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals(0, buffer.size());
+
writeShortLe
in interface BufferedSink
public Buffer writeInt(int i)+
BufferedSink
+
+ Buffer buffer = new Buffer();
+ buffer.writeInt(2147483647);
+ buffer.writeInt(15);
+
+ assertEquals(8, buffer.size());
+ assertEquals((byte) 0x7f, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x0f, buffer.readByte());
+ assertEquals(0, buffer.size());
+
writeInt
in interface BufferedSink
public Buffer writeIntLe(int i)+
BufferedSink
+
+ Buffer buffer = new Buffer();
+ buffer.writeIntLe(2147483647);
+ buffer.writeIntLe(15);
+
+ assertEquals(8, buffer.size());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0x7f, buffer.readByte());
+ assertEquals((byte) 0x0f, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals(0, buffer.size());
+
writeIntLe
in interface BufferedSink
public Buffer writeLong(long v)+
BufferedSink
+
+ Buffer buffer = new Buffer();
+ buffer.writeLong(9223372036854775807L);
+ buffer.writeLong(15);
+
+ assertEquals(16, buffer.size());
+ assertEquals((byte) 0x7f, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x0f, buffer.readByte());
+ assertEquals(0, buffer.size());
+
writeLong
in interface BufferedSink
public Buffer writeLongLe(long v)+
BufferedSink
+
+ Buffer buffer = new Buffer();
+ buffer.writeLongLe(9223372036854775807L);
+ buffer.writeLongLe(15);
+
+ assertEquals(16, buffer.size());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0x7f, buffer.readByte());
+ assertEquals((byte) 0x0f, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals(0, buffer.size());
+
writeLongLe
in interface BufferedSink
public Buffer writeDecimalLong(long v)+
BufferedSink
+
+ Buffer buffer = new Buffer();
+ buffer.writeDecimalLong(8675309L);
+ buffer.writeByte(' ');
+ buffer.writeDecimalLong(-123L);
+ buffer.writeByte(' ');
+ buffer.writeDecimalLong(1L);
+
+ assertEquals("8675309 -123 1", buffer.readUtf8());
+
writeDecimalLong
in interface BufferedSink
public Buffer writeHexadecimalUnsignedLong(long v)+
BufferedSink
+
+ Buffer buffer = new Buffer();
+ buffer.writeHexadecimalUnsignedLong(65535L);
+ buffer.writeByte(' ');
+ buffer.writeHexadecimalUnsignedLong(0xcafebabeL);
+ buffer.writeByte(' ');
+ buffer.writeHexadecimalUnsignedLong(0x10L);
+
+ assertEquals("ffff cafebabe 10", buffer.readUtf8());
+
writeHexadecimalUnsignedLong
in interface BufferedSink
public void write(Buffer source, + long byteCount)+
Sink
byteCount
bytes from source
and appends them to this.public long read(Buffer sink, + long byteCount)+
Source
byteCount
bytes from this and appends
+ them to sink
. Returns the number of bytes read, or -1 if this
+ source is exhausted.public long indexOf(byte b)+
BufferedSource
indexOf(b, 0)
.indexOf
in interface BufferedSource
public long indexOf(byte b, + long fromIndex)+
b
in this at or beyond fromIndex
, or
+ -1 if this buffer does not contain b
in that range.indexOf
in interface BufferedSource
public long indexOf(byte b, + long fromIndex, + long toIndex)+
BufferedSource
b
if it is found in the range of fromIndex
inclusive
+ to toIndex
exclusive. If b
isn't found, or if fromIndex == toIndex
,
+ then -1 is returned.
+
+ The scan terminates at either toIndex
or the end of the buffer, whichever comes
+ first. The maximum number of bytes scanned is toIndex-fromIndex
.
indexOf
in interface BufferedSource
public long indexOf(ByteString bytes) + throws java.io.IOException+
BufferedSource
indexOf(bytes, 0)
.indexOf
in interface BufferedSource
java.io.IOException
public long indexOf(ByteString bytes, + long fromIndex) + throws java.io.IOException+
BufferedSource
bytes
in the buffer at or after fromIndex
. This expands the buffer as necessary until bytes
is found. This reads an
+ unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the
+ requested bytes are found.
+
+ ByteString MOVE = ByteString.encodeUtf8("move");
+
+ Buffer buffer = new Buffer();
+ buffer.writeUtf8("Don't move! He can't see us if we don't move.");
+
+ assertEquals(6, buffer.indexOf(MOVE));
+ assertEquals(40, buffer.indexOf(MOVE, 12));
+
indexOf
in interface BufferedSource
java.io.IOException
public long indexOfElement(ByteString targetBytes)+
BufferedSource
indexOfElement(targetBytes, 0)
.indexOfElement
in interface BufferedSource
public long indexOfElement(ByteString targetBytes, + long fromIndex)+
BufferedSource
fromIndex
and that contains
+ any of the bytes in targetBytes
. This expands the buffer as necessary until a target
+ byte is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the
+ stream is exhausted before the requested byte is found.
+
+ ByteString ANY_VOWEL = ByteString.encodeUtf8("AEOIUaeoiu");
+
+ Buffer buffer = new Buffer();
+ buffer.writeUtf8("Dr. Alan Grant");
+
+ assertEquals(4, buffer.indexOfElement(ANY_VOWEL)); // 'A' in 'Alan'.
+ assertEquals(11, buffer.indexOfElement(ANY_VOWEL, 9)); // 'a' in 'Grant'.
+
indexOfElement
in interface BufferedSource
public boolean rangeEquals(long offset, + ByteString bytes)+
BufferedSource
offset
in this source equal bytes
. This expands
+ the buffer as necessary until a byte does not match, all bytes are matched, or if the stream
+ is exhausted before enough bytes could determine a match.
+
+ ByteString simonSays = ByteString.encodeUtf8("Simon says:");
+
+ Buffer standOnOneLeg = new Buffer().writeUtf8("Simon says: Stand on one leg.");
+ assertTrue(standOnOneLeg.rangeEquals(0, simonSays));
+
+ Buffer payMeMoney = new Buffer().writeUtf8("Pay me $1,000,000.");
+ assertFalse(payMeMoney.rangeEquals(0, simonSays));
+
rangeEquals
in interface BufferedSource
public boolean rangeEquals(long offset, + ByteString bytes, + int bytesOffset, + int byteCount)+
BufferedSource
byteCount
bytes at offset
in this source equal bytes
+ at bytesOffset
. This expands the buffer as necessary until a byte does not match, all
+ bytes are matched, or if the stream is exhausted before enough bytes could determine a match.rangeEquals
in interface BufferedSource
public void flush()+
BufferedSink
+
+ BufferedSink b0 = new Buffer();
+ BufferedSink b1 = Okio.buffer(b0);
+ BufferedSink b2 = Okio.buffer(b1);
+
+ b2.writeUtf8("hello");
+ assertEquals(5, b2.buffer().size());
+ assertEquals(0, b1.buffer().size());
+ assertEquals(0, b0.buffer().size());
+
+ b2.flush();
+ assertEquals(0, b2.buffer().size());
+ assertEquals(0, b1.buffer().size());
+ assertEquals(5, b0.buffer().size());
+
flush
in interface java.io.Flushable
flush
in interface BufferedSink
flush
in interface Sink
public boolean isOpen()+
isOpen
in interface java.nio.channels.Channel
public void close()+
Source
public Timeout timeout()+
Source
public final ByteString md5()+
public final ByteString sha1()+
public final ByteString sha256()+
public final ByteString sha512()+
public final ByteString hmacSha1(ByteString key)+
public final ByteString hmacSha256(ByteString key)+
public final ByteString hmacSha512(ByteString key)+
public boolean equals(java.lang.Object o)+
equals
in class java.lang.Object
public int hashCode()+
hashCode
in class java.lang.Object
public java.lang.String toString()+
[text=Hello]
or [hex=0000ffff]
.toString
in class java.lang.Object
public Buffer clone()+
clone
in class java.lang.Object
public final ByteString snapshot()+
public final ByteString snapshot(int byteCount)+
byteCount
bytes of this buffer as a byte string.public final Buffer.UnsafeCursor readUnsafe()+
public final Buffer.UnsafeCursor readUnsafe(Buffer.UnsafeCursor unsafeCursor)+
public final Buffer.UnsafeCursor readAndWriteUnsafe()+
public final Buffer.UnsafeCursor readAndWriteUnsafe(Buffer.UnsafeCursor unsafeCursor)+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/BufferedSink.html b/1.x/okio/okio/BufferedSink.html new file mode 100644 index 0000000000..f1b9a74ed3 --- /dev/null +++ b/1.x/okio/okio/BufferedSink.html @@ -0,0 +1,961 @@ + + + + + + +public interface BufferedSink +extends Sink, java.nio.channels.WritableByteChannel+
Modifier and Type | +Method and Description | +
---|---|
Buffer |
+buffer()
+Returns this sink's internal buffer.
+ |
+
BufferedSink |
+emit()
+Writes all buffered data to the underlying sink, if one exists.
+ |
+
BufferedSink |
+emitCompleteSegments()
+Writes complete segments to the underlying sink, if one exists.
+ |
+
void |
+flush()
+Writes all buffered data to the underlying sink, if one exists.
+ |
+
java.io.OutputStream |
+outputStream()
+Returns an output stream that writes to this sink.
+ |
+
BufferedSink |
+write(byte[] source)
+Like
+OutputStream.write(byte[]) , this writes a complete byte array to
+ this sink. |
+
BufferedSink |
+write(byte[] source,
+ int offset,
+ int byteCount)
+Like
+OutputStream.write(byte[], int, int) , this writes byteCount
+ bytes of source , starting at offset . |
+
BufferedSink |
+write(ByteString byteString) |
+
BufferedSink |
+write(Source source,
+ long byteCount)
+Removes
+byteCount bytes from source and appends them to this sink. |
+
long |
+writeAll(Source source)
+Removes all bytes from
+source and appends them to this sink. |
+
BufferedSink |
+writeByte(int b)
+Writes a byte to this sink.
+ |
+
BufferedSink |
+writeDecimalLong(long v)
+Writes a long to this sink in signed decimal form (i.e., as a string in base 10).
+ |
+
BufferedSink |
+writeHexadecimalUnsignedLong(long v)
+Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).
+ |
+
BufferedSink |
+writeInt(int i)
+Writes a big-endian int to this sink using four bytes.
+ |
+
BufferedSink |
+writeIntLe(int i)
+Writes a little-endian int to this sink using four bytes.
+ |
+
BufferedSink |
+writeLong(long v)
+Writes a big-endian long to this sink using eight bytes.
+ |
+
BufferedSink |
+writeLongLe(long v)
+Writes a little-endian long to this sink using eight bytes.
+ |
+
BufferedSink |
+writeShort(int s)
+Writes a big-endian short to this sink using two bytes.
+ |
+
BufferedSink |
+writeShortLe(int s)
+Writes a little-endian short to this sink using two bytes.
+ |
+
BufferedSink |
+writeString(java.lang.String string,
+ java.nio.charset.Charset charset)
+Encodes
+string in charset and writes it to this sink. |
+
BufferedSink |
+writeString(java.lang.String string,
+ int beginIndex,
+ int endIndex,
+ java.nio.charset.Charset charset)
+Encodes the characters at
+beginIndex up to endIndex from string in
+ charset and writes it to this sink. |
+
BufferedSink |
+writeUtf8(java.lang.String string)
+Encodes
+string in UTF-8 and writes it to this sink. |
+
BufferedSink |
+writeUtf8(java.lang.String string,
+ int beginIndex,
+ int endIndex)
+Encodes the characters at
+beginIndex up to endIndex from string in
+ UTF-8 and writes it to this sink. |
+
BufferedSink |
+writeUtf8CodePoint(int codePoint)
+Encodes
+codePoint in UTF-8 and writes it to this sink. |
+
write
isOpen
Buffer buffer()+
BufferedSink write(ByteString byteString) + throws java.io.IOException+
java.io.IOException
BufferedSink write(byte[] source) + throws java.io.IOException+
OutputStream.write(byte[])
, this writes a complete byte array to
+ this sink.java.io.IOException
BufferedSink write(byte[] source, + int offset, + int byteCount) + throws java.io.IOException+
OutputStream.write(byte[], int, int)
, this writes byteCount
+ bytes of source
, starting at offset
.java.io.IOException
long writeAll(Source source) + throws java.io.IOException+
source
and appends them to this sink. Returns the
+ number of bytes read which will be 0 if source
is exhausted.java.io.IOException
BufferedSink write(Source source, + long byteCount) + throws java.io.IOException+
byteCount
bytes from source
and appends them to this sink.java.io.IOException
BufferedSink writeUtf8(java.lang.String string) + throws java.io.IOException+
string
in UTF-8 and writes it to this sink.
+
+ Buffer buffer = new Buffer();
+ buffer.writeUtf8("Uh uh uh!");
+ buffer.writeByte(' ');
+ buffer.writeUtf8("You didn't say the magic word!");
+
+ assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());
+
java.io.IOException
BufferedSink writeUtf8(java.lang.String string, + int beginIndex, + int endIndex) + throws java.io.IOException+
beginIndex
up to endIndex
from string
in
+ UTF-8 and writes it to this sink.
+
+ Buffer buffer = new Buffer();
+ buffer.writeUtf8("I'm a hacker!\n", 6, 12);
+ buffer.writeByte(' ');
+ buffer.writeUtf8("That's what I said: you're a nerd.\n", 29, 33);
+ buffer.writeByte(' ');
+ buffer.writeUtf8("I prefer to be called a hacker!\n", 24, 31);
+
+ assertEquals("hacker nerd hacker!", buffer.readUtf8());
+
java.io.IOException
BufferedSink writeUtf8CodePoint(int codePoint) + throws java.io.IOException+
codePoint
in UTF-8 and writes it to this sink.java.io.IOException
BufferedSink writeString(java.lang.String string, + java.nio.charset.Charset charset) + throws java.io.IOException+
string
in charset
and writes it to this sink.java.io.IOException
BufferedSink writeString(java.lang.String string, + int beginIndex, + int endIndex, + java.nio.charset.Charset charset) + throws java.io.IOException+
beginIndex
up to endIndex
from string
in
+ charset
and writes it to this sink.java.io.IOException
BufferedSink writeByte(int b) + throws java.io.IOException+
java.io.IOException
BufferedSink writeShort(int s) + throws java.io.IOException+
+
+ Buffer buffer = new Buffer();
+ buffer.writeShort(32767);
+ buffer.writeShort(15);
+
+ assertEquals(4, buffer.size());
+ assertEquals((byte) 0x7f, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x0f, buffer.readByte());
+ assertEquals(0, buffer.size());
+
java.io.IOException
BufferedSink writeShortLe(int s) + throws java.io.IOException+
+
+ Buffer buffer = new Buffer();
+ buffer.writeShortLe(32767);
+ buffer.writeShortLe(15);
+
+ assertEquals(4, buffer.size());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0x7f, buffer.readByte());
+ assertEquals((byte) 0x0f, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals(0, buffer.size());
+
java.io.IOException
BufferedSink writeInt(int i) + throws java.io.IOException+
+
+ Buffer buffer = new Buffer();
+ buffer.writeInt(2147483647);
+ buffer.writeInt(15);
+
+ assertEquals(8, buffer.size());
+ assertEquals((byte) 0x7f, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x0f, buffer.readByte());
+ assertEquals(0, buffer.size());
+
java.io.IOException
BufferedSink writeIntLe(int i) + throws java.io.IOException+
+
+ Buffer buffer = new Buffer();
+ buffer.writeIntLe(2147483647);
+ buffer.writeIntLe(15);
+
+ assertEquals(8, buffer.size());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0x7f, buffer.readByte());
+ assertEquals((byte) 0x0f, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals(0, buffer.size());
+
java.io.IOException
BufferedSink writeLong(long v) + throws java.io.IOException+
+
+ Buffer buffer = new Buffer();
+ buffer.writeLong(9223372036854775807L);
+ buffer.writeLong(15);
+
+ assertEquals(16, buffer.size());
+ assertEquals((byte) 0x7f, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x0f, buffer.readByte());
+ assertEquals(0, buffer.size());
+
java.io.IOException
BufferedSink writeLongLe(long v) + throws java.io.IOException+
+
+ Buffer buffer = new Buffer();
+ buffer.writeLongLe(9223372036854775807L);
+ buffer.writeLongLe(15);
+
+ assertEquals(16, buffer.size());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0xff, buffer.readByte());
+ assertEquals((byte) 0x7f, buffer.readByte());
+ assertEquals((byte) 0x0f, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals((byte) 0x00, buffer.readByte());
+ assertEquals(0, buffer.size());
+
java.io.IOException
BufferedSink writeDecimalLong(long v) + throws java.io.IOException+
+
+ Buffer buffer = new Buffer();
+ buffer.writeDecimalLong(8675309L);
+ buffer.writeByte(' ');
+ buffer.writeDecimalLong(-123L);
+ buffer.writeByte(' ');
+ buffer.writeDecimalLong(1L);
+
+ assertEquals("8675309 -123 1", buffer.readUtf8());
+
java.io.IOException
BufferedSink writeHexadecimalUnsignedLong(long v) + throws java.io.IOException+
+
+ Buffer buffer = new Buffer();
+ buffer.writeHexadecimalUnsignedLong(65535L);
+ buffer.writeByte(' ');
+ buffer.writeHexadecimalUnsignedLong(0xcafebabeL);
+ buffer.writeByte(' ');
+ buffer.writeHexadecimalUnsignedLong(0x10L);
+
+ assertEquals("ffff cafebabe 10", buffer.readUtf8());
+
java.io.IOException
void flush() + throws java.io.IOException+
+
+ BufferedSink b0 = new Buffer();
+ BufferedSink b1 = Okio.buffer(b0);
+ BufferedSink b2 = Okio.buffer(b1);
+
+ b2.writeUtf8("hello");
+ assertEquals(5, b2.buffer().size());
+ assertEquals(0, b1.buffer().size());
+ assertEquals(0, b0.buffer().size());
+
+ b2.flush();
+ assertEquals(0, b2.buffer().size());
+ assertEquals(0, b1.buffer().size());
+ assertEquals(5, b0.buffer().size());
+
BufferedSink emit() + throws java.io.IOException+
flush()
, but
+ weaker. Call this before this buffered sink goes out of scope so that its data can reach its
+ destination.
+
+ BufferedSink b0 = new Buffer();
+ BufferedSink b1 = Okio.buffer(b0);
+ BufferedSink b2 = Okio.buffer(b1);
+
+ b2.writeUtf8("hello");
+ assertEquals(5, b2.buffer().size());
+ assertEquals(0, b1.buffer().size());
+ assertEquals(0, b0.buffer().size());
+
+ b2.emit();
+ assertEquals(0, b2.buffer().size());
+ assertEquals(5, b1.buffer().size());
+ assertEquals(0, b0.buffer().size());
+
+ b1.emit();
+ assertEquals(0, b2.buffer().size());
+ assertEquals(0, b1.buffer().size());
+ assertEquals(5, b0.buffer().size());
+
java.io.IOException
BufferedSink emitCompleteSegments() + throws java.io.IOException+
flush()
, but
+ weaker. Use this to limit the memory held in the buffer to a single segment. Typically
+ application code will not need to call this: it is only necessary when application code writes
+ directly to this sink's buffer.
+
+ BufferedSink b0 = new Buffer();
+ BufferedSink b1 = Okio.buffer(b0);
+ BufferedSink b2 = Okio.buffer(b1);
+
+ b2.buffer().write(new byte[20_000]);
+ assertEquals(20_000, b2.buffer().size());
+ assertEquals( 0, b1.buffer().size());
+ assertEquals( 0, b0.buffer().size());
+
+ b2.emitCompleteSegments();
+ assertEquals( 3_616, b2.buffer().size());
+ assertEquals( 0, b1.buffer().size());
+ assertEquals(16_384, b0.buffer().size()); // This example assumes 8192 byte segments.
+
java.io.IOException
java.io.OutputStream outputStream()+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/BufferedSource.html b/1.x/okio/okio/BufferedSource.html new file mode 100644 index 0000000000..c084af147e --- /dev/null +++ b/1.x/okio/okio/BufferedSource.html @@ -0,0 +1,1462 @@ + + + + + + +public interface BufferedSource +extends Source, java.nio.channels.ReadableByteChannel+
Modifier and Type | +Method and Description | +
---|---|
Buffer |
+buffer()
+Returns this source's internal buffer.
+ |
+
boolean |
+exhausted()
+Returns true if there are no more bytes in this source.
+ |
+
long |
+indexOf(byte b)
+Equivalent to
+indexOf(b, 0) . |
+
long |
+indexOf(byte b,
+ long fromIndex)
+Returns the index of the first
+b in the buffer at or after fromIndex . |
+
long |
+indexOf(byte b,
+ long fromIndex,
+ long toIndex)
+Returns the index of
+b if it is found in the range of fromIndex inclusive
+ to toIndex exclusive. |
+
long |
+indexOf(ByteString bytes)
+Equivalent to
+indexOf(bytes, 0) . |
+
long |
+indexOf(ByteString bytes,
+ long fromIndex)
+Returns the index of the first match for
+bytes in the buffer at or after fromIndex . |
+
long |
+indexOfElement(ByteString targetBytes)
+Equivalent to
+indexOfElement(targetBytes, 0) . |
+
long |
+indexOfElement(ByteString targetBytes,
+ long fromIndex)
+Returns the first index in this buffer that is at or after
+fromIndex and that contains
+ any of the bytes in targetBytes . |
+
java.io.InputStream |
+inputStream()
+Returns an input stream that reads from this source.
+ |
+
boolean |
+rangeEquals(long offset,
+ ByteString bytes)
+Returns true if the bytes at
+offset in this source equal bytes . |
+
boolean |
+rangeEquals(long offset,
+ ByteString bytes,
+ int bytesOffset,
+ int byteCount)
+Returns true if
+byteCount bytes at offset in this source equal bytes
+ at bytesOffset . |
+
int |
+read(byte[] sink)
+Removes up to
+sink.length bytes from this and copies them into sink . |
+
int |
+read(byte[] sink,
+ int offset,
+ int byteCount)
+Removes up to
+byteCount bytes from this and copies them into sink at offset . |
+
long |
+readAll(Sink sink)
+Removes all bytes from this and appends them to
+sink . |
+
byte |
+readByte()
+Removes a byte from this source and returns it.
+ |
+
byte[] |
+readByteArray()
+Removes all bytes from this and returns them as a byte array.
+ |
+
byte[] |
+readByteArray(long byteCount)
+Removes
+byteCount bytes from this and returns them as a byte array. |
+
ByteString |
+readByteString()
+Removes all bytes bytes from this and returns them as a byte string.
+ |
+
ByteString |
+readByteString(long byteCount)
+Removes
+byteCount bytes from this and returns them as a byte string. |
+
long |
+readDecimalLong()
+Reads a long from this source in signed decimal form (i.e., as a string in base 10 with
+ optional leading '-').
+ |
+
void |
+readFully(Buffer sink,
+ long byteCount)
+Removes exactly
+byteCount bytes from this and appends them to sink . |
+
void |
+readFully(byte[] sink)
+Removes exactly
+sink.length bytes from this and copies them into sink . |
+
long |
+readHexadecimalUnsignedLong()
+Reads a long form this source in hexadecimal form (i.e., as a string in base 16).
+ |
+
int |
+readInt()
+Removes four bytes from this source and returns a big-endian int.
+ |
+
int |
+readIntLe()
+Removes four bytes from this source and returns a little-endian int.
+ |
+
long |
+readLong()
+Removes eight bytes from this source and returns a big-endian long.
+ |
+
long |
+readLongLe()
+Removes eight bytes from this source and returns a little-endian long.
+ |
+
short |
+readShort()
+Removes two bytes from this source and returns a big-endian short.
+ |
+
short |
+readShortLe()
+Removes two bytes from this source and returns a little-endian short.
+ |
+
java.lang.String |
+readString(java.nio.charset.Charset charset)
+Removes all bytes from this, decodes them as
+charset , and returns the string. |
+
java.lang.String |
+readString(long byteCount,
+ java.nio.charset.Charset charset)
+Removes
+byteCount bytes from this, decodes them as charset , and returns the
+ string. |
+
java.lang.String |
+readUtf8()
+Removes all bytes from this, decodes them as UTF-8, and returns the string.
+ |
+
java.lang.String |
+readUtf8(long byteCount)
+Removes
+byteCount bytes from this, decodes them as UTF-8, and returns the string. |
+
int |
+readUtf8CodePoint()
+Removes and returns a single UTF-8 code point, reading between 1 and 4 bytes as necessary.
+ |
+
java.lang.String |
+readUtf8Line()
+Removes and returns characters up to but not including the next line break.
+ |
+
java.lang.String |
+readUtf8LineStrict()
+Removes and returns characters up to but not including the next line break.
+ |
+
java.lang.String |
+readUtf8LineStrict(long limit)
+Like
+readUtf8LineStrict() , except this allows the caller to specify the longest
+ allowed match. |
+
boolean |
+request(long byteCount)
+Returns true when the buffer contains at least
+byteCount bytes, expanding it as
+ necessary. |
+
void |
+require(long byteCount)
+Returns when the buffer contains at least
+byteCount bytes. |
+
int |
+select(Options options)
+Finds the first string in
+options that is a prefix of this buffer, consumes it from
+ this buffer, and returns its index. |
+
void |
+skip(long byteCount)
+Reads and discards
+byteCount bytes from this source. |
+
read
isOpen
Buffer buffer()+
boolean exhausted() + throws java.io.IOException+
java.io.IOException
void require(long byteCount) + throws java.io.IOException+
byteCount
bytes. Throws an
+ EOFException
if the source is exhausted before the required bytes can be read.java.io.IOException
boolean request(long byteCount) + throws java.io.IOException+
byteCount
bytes, expanding it as
+ necessary. Returns false if the source is exhausted before the requested bytes can be read.java.io.IOException
byte readByte() + throws java.io.IOException+
java.io.IOException
short readShort() + throws java.io.IOException+
+
+ Buffer buffer = new Buffer()
+ .writeByte(0x7f)
+ .writeByte(0xff)
+ .writeByte(0x00)
+ .writeByte(0x0f);
+ assertEquals(4, buffer.size());
+
+ assertEquals(32767, buffer.readShort());
+ assertEquals(2, buffer.size());
+
+ assertEquals(15, buffer.readShort());
+ assertEquals(0, buffer.size());
+
java.io.IOException
short readShortLe() + throws java.io.IOException+
+
+ Buffer buffer = new Buffer()
+ .writeByte(0xff)
+ .writeByte(0x7f)
+ .writeByte(0x0f)
+ .writeByte(0x00);
+ assertEquals(4, buffer.size());
+
+ assertEquals(32767, buffer.readShortLe());
+ assertEquals(2, buffer.size());
+
+ assertEquals(15, buffer.readShortLe());
+ assertEquals(0, buffer.size());
+
java.io.IOException
int readInt() + throws java.io.IOException+
+
+ Buffer buffer = new Buffer()
+ .writeByte(0x7f)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x0f);
+ assertEquals(8, buffer.size());
+
+ assertEquals(2147483647, buffer.readInt());
+ assertEquals(4, buffer.size());
+
+ assertEquals(15, buffer.readInt());
+ assertEquals(0, buffer.size());
+
java.io.IOException
int readIntLe() + throws java.io.IOException+
+
+ Buffer buffer = new Buffer()
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0x7f)
+ .writeByte(0x0f)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00);
+ assertEquals(8, buffer.size());
+
+ assertEquals(2147483647, buffer.readIntLe());
+ assertEquals(4, buffer.size());
+
+ assertEquals(15, buffer.readIntLe());
+ assertEquals(0, buffer.size());
+
java.io.IOException
long readLong() + throws java.io.IOException+
+
+ Buffer buffer = new Buffer()
+ .writeByte(0x7f)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x0f);
+ assertEquals(16, buffer.size());
+
+ assertEquals(9223372036854775807L, buffer.readLong());
+ assertEquals(8, buffer.size());
+
+ assertEquals(15, buffer.readLong());
+ assertEquals(0, buffer.size());
+
java.io.IOException
long readLongLe() + throws java.io.IOException+
+
+ Buffer buffer = new Buffer()
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0xff)
+ .writeByte(0x7f)
+ .writeByte(0x0f)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00)
+ .writeByte(0x00);
+ assertEquals(16, buffer.size());
+
+ assertEquals(9223372036854775807L, buffer.readLongLe());
+ assertEquals(8, buffer.size());
+
+ assertEquals(15, buffer.readLongLe());
+ assertEquals(0, buffer.size());
+
java.io.IOException
long readDecimalLong() + throws java.io.IOException+
+
+ Buffer buffer = new Buffer()
+ .writeUtf8("8675309 -123 00001");
+
+ assertEquals(8675309L, buffer.readDecimalLong());
+ assertEquals(' ', buffer.readByte());
+ assertEquals(-123L, buffer.readDecimalLong());
+ assertEquals(' ', buffer.readByte());
+ assertEquals(1L, buffer.readDecimalLong());
+
java.lang.NumberFormatException
- if the found digits do not fit into a long
or a decimal
+ number was not present.java.io.IOException
long readHexadecimalUnsignedLong() + throws java.io.IOException+
+
+ Buffer buffer = new Buffer()
+ .writeUtf8("ffff CAFEBABE 10");
+
+ assertEquals(65535L, buffer.readHexadecimalUnsignedLong());
+ assertEquals(' ', buffer.readByte());
+ assertEquals(0xcafebabeL, buffer.readHexadecimalUnsignedLong());
+ assertEquals(' ', buffer.readByte());
+ assertEquals(0x10L, buffer.readHexadecimalUnsignedLong());
+
java.lang.NumberFormatException
- if the found hexadecimal does not fit into a long
or
+ hexadecimal was not found.java.io.IOException
void skip(long byteCount) + throws java.io.IOException+
byteCount
bytes from this source. Throws an
+ EOFException
if the source is exhausted before the
+ requested bytes can be skipped.java.io.IOException
ByteString readByteString() + throws java.io.IOException+
java.io.IOException
ByteString readByteString(long byteCount) + throws java.io.IOException+
byteCount
bytes from this and returns them as a byte string.java.io.IOException
int select(Options options) + throws java.io.IOException+
options
that is a prefix of this buffer, consumes it from
+ this buffer, and returns its index. If no byte string in options
is a prefix of this
+ buffer this returns -1 and no bytes are consumed.
+
+ This can be used as an alternative to readByteString()
or even readUtf8()
if
+ the set of expected values is known in advance.
+
+ Options FIELDS = Options.of(
+ ByteString.encodeUtf8("depth="),
+ ByteString.encodeUtf8("height="),
+ ByteString.encodeUtf8("width="));
+
+ Buffer buffer = new Buffer()
+ .writeUtf8("width=640\n")
+ .writeUtf8("height=480\n");
+
+ assertEquals(2, buffer.select(FIELDS));
+ assertEquals(640, buffer.readDecimalLong());
+ assertEquals('\n', buffer.readByte());
+ assertEquals(1, buffer.select(FIELDS));
+ assertEquals(480, buffer.readDecimalLong());
+ assertEquals('\n', buffer.readByte());
+
java.io.IOException
byte[] readByteArray() + throws java.io.IOException+
java.io.IOException
byte[] readByteArray(long byteCount) + throws java.io.IOException+
byteCount
bytes from this and returns them as a byte array.java.io.IOException
int read(byte[] sink) + throws java.io.IOException+
sink.length
bytes from this and copies them into sink
. Returns
+ the number of bytes read, or -1 if this source is exhausted.java.io.IOException
void readFully(byte[] sink) + throws java.io.IOException+
sink.length
bytes from this and copies them into sink
. Throws
+ an EOFException
if the requested number of bytes cannot be read.java.io.IOException
int read(byte[] sink, + int offset, + int byteCount) + throws java.io.IOException+
byteCount
bytes from this and copies them into sink
at offset
. Returns the number of bytes read, or -1 if this source is exhausted.java.io.IOException
void readFully(Buffer sink, + long byteCount) + throws java.io.IOException+
byteCount
bytes from this and appends them to sink
. Throws an
+ EOFException
if the requested number of bytes cannot be read.java.io.IOException
long readAll(Sink sink) + throws java.io.IOException+
sink
. Returns the total number of bytes
+ written to sink
which will be 0 if this is exhausted.java.io.IOException
java.lang.String readUtf8() + throws java.io.IOException+
+
+ Buffer buffer = new Buffer()
+ .writeUtf8("Uh uh uh!")
+ .writeByte(' ')
+ .writeUtf8("You didn't say the magic word!");
+
+ assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());
+ assertEquals(0, buffer.size());
+
+ assertEquals("", buffer.readUtf8());
+ assertEquals(0, buffer.size());
+
java.io.IOException
java.lang.String readUtf8(long byteCount) + throws java.io.IOException+
byteCount
bytes from this, decodes them as UTF-8, and returns the string.
+
+
+ Buffer buffer = new Buffer()
+ .writeUtf8("Uh uh uh!")
+ .writeByte(' ')
+ .writeUtf8("You didn't say the magic word!");
+ assertEquals(40, buffer.size());
+
+ assertEquals("Uh uh uh! You ", buffer.readUtf8(14));
+ assertEquals(26, buffer.size());
+
+ assertEquals("didn't say the", buffer.readUtf8(14));
+ assertEquals(12, buffer.size());
+
+ assertEquals(" magic word!", buffer.readUtf8(12));
+ assertEquals(0, buffer.size());
+
java.io.IOException
@Nullable +java.lang.String readUtf8Line() + throws java.io.IOException+
"\n"
or "\r\n"
; these characters are not included in the result.
+
+
+ Buffer buffer = new Buffer()
+ .writeUtf8("I'm a hacker!\n")
+ .writeUtf8("That's what I said: you're a nerd.\n")
+ .writeUtf8("I prefer to be called a hacker!\n");
+ assertEquals(81, buffer.size());
+
+ assertEquals("I'm a hacker!", buffer.readUtf8Line());
+ assertEquals(67, buffer.size());
+
+ assertEquals("That's what I said: you're a nerd.", buffer.readUtf8Line());
+ assertEquals(32, buffer.size());
+
+ assertEquals("I prefer to be called a hacker!", buffer.readUtf8Line());
+ assertEquals(0, buffer.size());
+
+ assertEquals(null, buffer.readUtf8Line());
+ assertEquals(0, buffer.size());
+
+
+ On the end of the stream this method returns null, just like BufferedReader
. If the source doesn't end with a line break then an implicit line
+ break is assumed. Null is returned once the source is exhausted. Use this for human-generated
+ data, where a trailing line break is optional.
java.io.IOException
java.lang.String readUtf8LineStrict() + throws java.io.IOException+
"\n"
or "\r\n"
; these characters are not included in the result.
+
+ On the end of the stream this method throws. Every call must consume either
+ '\r\n' or '\n'. If these characters are absent in the stream, an EOFException
+ is thrown. Use this for machine-generated data where a missing line break implies truncated
+ input.
java.io.IOException
java.lang.String readUtf8LineStrict(long limit) + throws java.io.IOException+
readUtf8LineStrict()
, except this allows the caller to specify the longest
+ allowed match. Use this to protect against streams that may not include
+ "\n"
or "\r\n"
.
+
+ The returned string will have at most limit
UTF-8 bytes, and the maximum number
+ of bytes scanned is limit + 2
. If limit == 0
this will always throw
+ an EOFException
because no bytes will be scanned.
+
+
This method is safe. No bytes are discarded if the match fails, and the caller is free + to try another match:
+
+ Buffer buffer = new Buffer();
+ buffer.writeUtf8("12345\r\n");
+
+ // This will throw! There must be \r\n or \n at the limit or before it.
+ buffer.readUtf8LineStrict(4);
+
+ // No bytes have been consumed so the caller can retry.
+ assertEquals("12345", buffer.readUtf8LineStrict(5));
+
java.io.IOException
int readUtf8CodePoint() + throws java.io.IOException+
If this source is exhausted before a complete code point can be read, this throws an EOFException
and consumes no input.
+
+
If this source doesn't start with a properly-encoded UTF-8 code point, this method will
+ remove 1 or more non-UTF-8 bytes and return the replacement character (U+FFFD
). This
+ covers encoding problems (the input is not properly-encoded UTF-8), characters out of range
+ (beyond the 0x10ffff limit of Unicode), code points for UTF-16 surrogates (U+d800..U+dfff) and
+ overlong encodings (such as 0xc080
for the NUL character in modified UTF-8).
java.io.IOException
java.lang.String readString(java.nio.charset.Charset charset) + throws java.io.IOException+
charset
, and returns the string.java.io.IOException
java.lang.String readString(long byteCount, + java.nio.charset.Charset charset) + throws java.io.IOException+
byteCount
bytes from this, decodes them as charset
, and returns the
+ string.java.io.IOException
long indexOf(byte b) + throws java.io.IOException+
indexOf(b, 0)
.java.io.IOException
long indexOf(byte b, + long fromIndex) + throws java.io.IOException+
b
in the buffer at or after fromIndex
. This
+ expands the buffer as necessary until b
is found. This reads an unbounded number of
+ bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is
+ found.
+
+ Buffer buffer = new Buffer();
+ buffer.writeUtf8("Don't move! He can't see us if we don't move.");
+
+ byte m = 'm';
+ assertEquals(6, buffer.indexOf(m));
+ assertEquals(40, buffer.indexOf(m, 12));
+
java.io.IOException
long indexOf(byte b, + long fromIndex, + long toIndex) + throws java.io.IOException+
b
if it is found in the range of fromIndex
inclusive
+ to toIndex
exclusive. If b
isn't found, or if fromIndex == toIndex
,
+ then -1 is returned.
+
+ The scan terminates at either toIndex
or the end of the buffer, whichever comes
+ first. The maximum number of bytes scanned is toIndex-fromIndex
.
java.io.IOException
long indexOf(ByteString bytes) + throws java.io.IOException+
indexOf(bytes, 0)
.java.io.IOException
long indexOf(ByteString bytes, + long fromIndex) + throws java.io.IOException+
bytes
in the buffer at or after fromIndex
. This expands the buffer as necessary until bytes
is found. This reads an
+ unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the
+ requested bytes are found.
+
+ ByteString MOVE = ByteString.encodeUtf8("move");
+
+ Buffer buffer = new Buffer();
+ buffer.writeUtf8("Don't move! He can't see us if we don't move.");
+
+ assertEquals(6, buffer.indexOf(MOVE));
+ assertEquals(40, buffer.indexOf(MOVE, 12));
+
java.io.IOException
long indexOfElement(ByteString targetBytes) + throws java.io.IOException+
indexOfElement(targetBytes, 0)
.java.io.IOException
long indexOfElement(ByteString targetBytes, + long fromIndex) + throws java.io.IOException+
fromIndex
and that contains
+ any of the bytes in targetBytes
. This expands the buffer as necessary until a target
+ byte is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the
+ stream is exhausted before the requested byte is found.
+
+ ByteString ANY_VOWEL = ByteString.encodeUtf8("AEOIUaeoiu");
+
+ Buffer buffer = new Buffer();
+ buffer.writeUtf8("Dr. Alan Grant");
+
+ assertEquals(4, buffer.indexOfElement(ANY_VOWEL)); // 'A' in 'Alan'.
+ assertEquals(11, buffer.indexOfElement(ANY_VOWEL, 9)); // 'a' in 'Grant'.
+
java.io.IOException
boolean rangeEquals(long offset, + ByteString bytes) + throws java.io.IOException+
offset
in this source equal bytes
. This expands
+ the buffer as necessary until a byte does not match, all bytes are matched, or if the stream
+ is exhausted before enough bytes could determine a match.
+
+ ByteString simonSays = ByteString.encodeUtf8("Simon says:");
+
+ Buffer standOnOneLeg = new Buffer().writeUtf8("Simon says: Stand on one leg.");
+ assertTrue(standOnOneLeg.rangeEquals(0, simonSays));
+
+ Buffer payMeMoney = new Buffer().writeUtf8("Pay me $1,000,000.");
+ assertFalse(payMeMoney.rangeEquals(0, simonSays));
+
java.io.IOException
boolean rangeEquals(long offset, + ByteString bytes, + int bytesOffset, + int byteCount) + throws java.io.IOException+
byteCount
bytes at offset
in this source equal bytes
+ at bytesOffset
. This expands the buffer as necessary until a byte does not match, all
+ bytes are matched, or if the stream is exhausted before enough bytes could determine a match.java.io.IOException
java.io.InputStream inputStream()+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/ByteString.html b/1.x/okio/okio/ByteString.html new file mode 100644 index 0000000000..5a6b02631b --- /dev/null +++ b/1.x/okio/okio/ByteString.html @@ -0,0 +1,1072 @@ + + + + + + +public class ByteString +extends java.lang.Object +implements java.io.Serializable, java.lang.Comparable<ByteString>+
Byte strings compare lexicographically as a sequence of unsigned bytes. That
+ is, the byte string ff
sorts after 00
. This is counter to the sort order of the
+ corresponding bytes, where -1
sorts before 0
.
+
+
Full disclosure: this class provides untrusted input and output streams with + raw access to the underlying byte array. A hostile stream implementation could keep a reference + to the mutable byte string, violating the immutable guarantee of this class. For this reason a + byte string's immutability guarantee cannot be relied upon for security in applets and other + environments that run both trusted and untrusted code in the same process.
Modifier and Type | +Field and Description | +
---|---|
static ByteString |
+EMPTY
+A singleton empty
+ByteString . |
+
Modifier and Type | +Method and Description | +
---|---|
java.nio.ByteBuffer |
+asByteBuffer()
+Returns a
+ByteBuffer view of the bytes in this ByteString . |
+
java.lang.String |
+base64()
+Returns this byte string encoded as Base64.
+ |
+
java.lang.String |
+base64Url()
+Returns this byte string encoded as URL-safe
+ Base64.
+ |
+
int |
+compareTo(ByteString byteString) |
+
static ByteString |
+decodeBase64(java.lang.String base64)
+Decodes the Base64-encoded bytes and returns their value as a byte string.
+ |
+
static ByteString |
+decodeHex(java.lang.String hex)
+Decodes the hex-encoded bytes and returns their value a byte string.
+ |
+
static ByteString |
+encodeString(java.lang.String s,
+ java.nio.charset.Charset charset)
+Returns a new byte string containing the
+charset -encoded bytes of s . |
+
static ByteString |
+encodeUtf8(java.lang.String s)
+Returns a new byte string containing the
+UTF-8 bytes of s . |
+
boolean |
+endsWith(byte[] suffix) |
+
boolean |
+endsWith(ByteString suffix) |
+
boolean |
+equals(java.lang.Object o) |
+
byte |
+getByte(int pos)
+Returns the byte at
+pos . |
+
int |
+hashCode() |
+
java.lang.String |
+hex()
+Returns this byte string encoded in hexadecimal.
+ |
+
ByteString |
+hmacSha1(ByteString key)
+Returns the 160-bit SHA-1 HMAC of this byte string.
+ |
+
ByteString |
+hmacSha256(ByteString key)
+Returns the 256-bit SHA-256 HMAC of this byte string.
+ |
+
ByteString |
+hmacSha512(ByteString key)
+Returns the 512-bit SHA-512 HMAC of this byte string.
+ |
+
int |
+indexOf(byte[] other) |
+
int |
+indexOf(byte[] other,
+ int fromIndex) |
+
int |
+indexOf(ByteString other) |
+
int |
+indexOf(ByteString other,
+ int fromIndex) |
+
int |
+lastIndexOf(byte[] other) |
+
int |
+lastIndexOf(byte[] other,
+ int fromIndex) |
+
int |
+lastIndexOf(ByteString other) |
+
int |
+lastIndexOf(ByteString other,
+ int fromIndex) |
+
ByteString |
+md5()
+Returns the 128-bit MD5 hash of this byte string.
+ |
+
static ByteString |
+of(byte... data)
+Returns a new byte string containing a clone of the bytes of
+data . |
+
static ByteString |
+of(byte[] data,
+ int offset,
+ int byteCount)
+Returns a new byte string containing a copy of
+byteCount bytes of data starting
+ at offset . |
+
static ByteString |
+of(java.nio.ByteBuffer data) |
+
boolean |
+rangeEquals(int offset,
+ byte[] other,
+ int otherOffset,
+ int byteCount)
+Returns true if the bytes of this in
+[offset..offset+byteCount) equal the bytes of
+ other in [otherOffset..otherOffset+byteCount) . |
+
boolean |
+rangeEquals(int offset,
+ ByteString other,
+ int otherOffset,
+ int byteCount)
+Returns true if the bytes of this in
+[offset..offset+byteCount) equal the bytes of
+ other in [otherOffset..otherOffset+byteCount) . |
+
static ByteString |
+read(java.io.InputStream in,
+ int byteCount)
+Reads
+count bytes from in and returns the result. |
+
ByteString |
+sha1()
+Returns the 160-bit SHA-1 hash of this byte string.
+ |
+
ByteString |
+sha256()
+Returns the 256-bit SHA-256 hash of this byte string.
+ |
+
ByteString |
+sha512()
+Returns the 512-bit SHA-512 hash of this byte string.
+ |
+
int |
+size()
+Returns the number of bytes in this ByteString.
+ |
+
boolean |
+startsWith(byte[] prefix) |
+
boolean |
+startsWith(ByteString prefix) |
+
java.lang.String |
+string(java.nio.charset.Charset charset)
+Constructs a new
+String by decoding the bytes using charset . |
+
ByteString |
+substring(int beginIndex)
+Returns a byte string that is a substring of this byte string, beginning at the specified
+ index until the end of this string.
+ |
+
ByteString |
+substring(int beginIndex,
+ int endIndex)
+Returns a byte string that is a substring of this byte string, beginning at the specified
+
+beginIndex and ends at the specified endIndex . |
+
ByteString |
+toAsciiLowercase()
+Returns a byte string equal to this byte string, but with the bytes 'A'
+ through 'Z' replaced with the corresponding byte in 'a' through 'z'.
+ |
+
ByteString |
+toAsciiUppercase()
+Returns a byte string equal to this byte string, but with the bytes 'a'
+ through 'z' replaced with the corresponding byte in 'A' through 'Z'.
+ |
+
byte[] |
+toByteArray()
+Returns a byte array containing a copy of the bytes in this
+ByteString . |
+
java.lang.String |
+toString()
+Returns a human-readable string that describes the contents of this byte string.
+ |
+
java.lang.String |
+utf8()
+Constructs a new
+String by decoding the bytes as UTF-8 . |
+
void |
+write(java.io.OutputStream out)
+Writes the contents of this byte string to
+out . |
+
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final ByteString EMPTY+
ByteString
.public static ByteString of(byte... data)+
data
.public static ByteString of(byte[] data, + int offset, + int byteCount)+
byteCount
bytes of data
starting
+ at offset
.public static ByteString of(java.nio.ByteBuffer data)+
public static ByteString encodeUtf8(java.lang.String s)+
UTF-8
bytes of s
.public static ByteString encodeString(java.lang.String s, + java.nio.charset.Charset charset)+
charset
-encoded bytes of s
.public java.lang.String utf8()+
String
by decoding the bytes as UTF-8
.public java.lang.String string(java.nio.charset.Charset charset)+
String
by decoding the bytes using charset
.public java.lang.String base64()+
public ByteString md5()+
public ByteString sha1()+
public ByteString sha256()+
public ByteString sha512()+
public ByteString hmacSha1(ByteString key)+
public ByteString hmacSha256(ByteString key)+
public ByteString hmacSha512(ByteString key)+
public java.lang.String base64Url()+
@Nullable +public static ByteString decodeBase64(java.lang.String base64)+
base64
is not a Base64-encoded sequence of bytes.public java.lang.String hex()+
public static ByteString decodeHex(java.lang.String hex)+
public static ByteString read(java.io.InputStream in, + int byteCount) + throws java.io.IOException+
count
bytes from in
and returns the result.java.io.EOFException
- if in
has fewer than count
+ bytes to read.java.io.IOException
public ByteString toAsciiLowercase()+
public ByteString toAsciiUppercase()+
public ByteString substring(int beginIndex)+
beginIndex
is 0.public ByteString substring(int beginIndex, + int endIndex)+
beginIndex
and ends at the specified endIndex
. Returns this byte string if
+ beginIndex
is 0 and endIndex
is the length of this byte string.public byte getByte(int pos)+
pos
.public int size()+
public byte[] toByteArray()+
ByteString
.public java.nio.ByteBuffer asByteBuffer()+
ByteBuffer
view of the bytes in this ByteString
.public void write(java.io.OutputStream out) + throws java.io.IOException+
out
.java.io.IOException
public boolean rangeEquals(int offset, + ByteString other, + int otherOffset, + int byteCount)+
[offset..offset+byteCount)
equal the bytes of
+ other
in [otherOffset..otherOffset+byteCount)
. Returns false if either range is
+ out of bounds.public boolean rangeEquals(int offset, + byte[] other, + int otherOffset, + int byteCount)+
[offset..offset+byteCount)
equal the bytes of
+ other
in [otherOffset..otherOffset+byteCount)
. Returns false if either range is
+ out of bounds.public final boolean startsWith(ByteString prefix)+
public final boolean startsWith(byte[] prefix)+
public final boolean endsWith(ByteString suffix)+
public final boolean endsWith(byte[] suffix)+
public final int indexOf(ByteString other)+
public final int indexOf(ByteString other, + int fromIndex)+
public final int indexOf(byte[] other)+
public int indexOf(byte[] other, + int fromIndex)+
public final int lastIndexOf(ByteString other)+
public final int lastIndexOf(ByteString other, + int fromIndex)+
public final int lastIndexOf(byte[] other)+
public int lastIndexOf(byte[] other, + int fromIndex)+
public boolean equals(java.lang.Object o)+
equals
in class java.lang.Object
public int hashCode()+
hashCode
in class java.lang.Object
public int compareTo(ByteString byteString)+
compareTo
in interface java.lang.Comparable<ByteString>
public java.lang.String toString()+
[text=Hello]
or [hex=0000ffff]
.toString
in class java.lang.Object
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/DeflaterSink.html b/1.x/okio/okio/DeflaterSink.html new file mode 100644 index 0000000000..8aabde900a --- /dev/null +++ b/1.x/okio/okio/DeflaterSink.html @@ -0,0 +1,398 @@ + + + + + + +public final class DeflaterSink +extends java.lang.Object +implements Sink+
flush()
immediately compresses all currently-buffered data;
+ this early compression may be less effective than compression performed
+ without flushing.
+
+ This is equivalent to using Deflater
with the sync flush option.
+ This class does not offer any partial flush mechanism. For best performance,
+ only call flush()
when application behavior requires it.
Constructor and Description | +
---|
DeflaterSink(Sink sink,
+ java.util.zip.Deflater deflater) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+close()
+Pushes all buffered bytes to their final destination and releases the
+ resources held by this sink.
+ |
+
void |
+flush()
+Pushes all buffered bytes to their final destination.
+ |
+
Timeout |
+timeout()
+Returns the timeout for this sink.
+ |
+
java.lang.String |
+toString() |
+
void |
+write(Buffer source,
+ long byteCount)
+Removes
+byteCount bytes from source and appends them to this. |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public DeflaterSink(Sink sink, + java.util.zip.Deflater deflater)+
public void write(Buffer source, + long byteCount) + throws java.io.IOException+
Sink
byteCount
bytes from source
and appends them to this.public void flush() + throws java.io.IOException+
Sink
public void close() + throws java.io.IOException+
Sink
public Timeout timeout()+
Sink
public java.lang.String toString()+
toString
in class java.lang.Object
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/ForwardingSink.html b/1.x/okio/okio/ForwardingSink.html new file mode 100644 index 0000000000..2d79e8acd0 --- /dev/null +++ b/1.x/okio/okio/ForwardingSink.html @@ -0,0 +1,405 @@ + + + + + + +public abstract class ForwardingSink +extends java.lang.Object +implements Sink+
Sink
which forwards calls to another. Useful for subclassing.Constructor and Description | +
---|
ForwardingSink(Sink delegate) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+close()
+Pushes all buffered bytes to their final destination and releases the
+ resources held by this sink.
+ |
+
Sink |
+delegate()
+Sink to which this instance is delegating. |
+
void |
+flush()
+Pushes all buffered bytes to their final destination.
+ |
+
Timeout |
+timeout()
+Returns the timeout for this sink.
+ |
+
java.lang.String |
+toString() |
+
void |
+write(Buffer source,
+ long byteCount)
+Removes
+byteCount bytes from source and appends them to this. |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public void write(Buffer source, + long byteCount) + throws java.io.IOException+
Sink
byteCount
bytes from source
and appends them to this.public void flush() + throws java.io.IOException+
Sink
public Timeout timeout()+
Sink
public void close() + throws java.io.IOException+
Sink
public java.lang.String toString()+
toString
in class java.lang.Object
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/ForwardingSource.html b/1.x/okio/okio/ForwardingSource.html new file mode 100644 index 0000000000..52991a0071 --- /dev/null +++ b/1.x/okio/okio/ForwardingSource.html @@ -0,0 +1,380 @@ + + + + + + +public abstract class ForwardingSource +extends java.lang.Object +implements Source+
Source
which forwards calls to another. Useful for subclassing.Constructor and Description | +
---|
ForwardingSource(Source delegate) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+close()
+Closes this source and releases the resources held by this source.
+ |
+
Source |
+delegate()
+Source to which this instance is delegating. |
+
long |
+read(Buffer sink,
+ long byteCount)
+Removes at least 1, and up to
+byteCount bytes from this and appends
+ them to sink . |
+
Timeout |
+timeout()
+Returns the timeout for this source.
+ |
+
java.lang.String |
+toString() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public ForwardingSource(Source delegate)+
public long read(Buffer sink, + long byteCount) + throws java.io.IOException+
Source
byteCount
bytes from this and appends
+ them to sink
. Returns the number of bytes read, or -1 if this
+ source is exhausted.public Timeout timeout()+
Source
public void close() + throws java.io.IOException+
Source
public java.lang.String toString()+
toString
in class java.lang.Object
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/ForwardingTimeout.html b/1.x/okio/okio/ForwardingTimeout.html new file mode 100644 index 0000000000..a1a04f7225 --- /dev/null +++ b/1.x/okio/okio/ForwardingTimeout.html @@ -0,0 +1,501 @@ + + + + + + +Constructor and Description | +
---|
ForwardingTimeout(Timeout delegate) |
+
Modifier and Type | +Method and Description | +
---|---|
Timeout |
+clearDeadline()
+Clears the deadline.
+ |
+
Timeout |
+clearTimeout()
+Clears the timeout.
+ |
+
long |
+deadlineNanoTime()
+Returns the nano time when the deadline will
+ be reached.
+ |
+
Timeout |
+deadlineNanoTime(long deadlineNanoTime)
+Sets the nano time when the deadline will be
+ reached.
+ |
+
Timeout |
+delegate()
+Timeout instance to which this instance is currently delegating. |
+
boolean |
+hasDeadline()
+Returns true if a deadline is enabled.
+ |
+
ForwardingTimeout |
+setDelegate(Timeout delegate) |
+
void |
+throwIfReached()
+Throws an
+InterruptedIOException if the deadline has been reached or if the current
+ thread has been interrupted. |
+
Timeout |
+timeout(long timeout,
+ java.util.concurrent.TimeUnit unit)
+Wait at most
+timeout time before aborting an operation. |
+
long |
+timeoutNanos()
+Returns the timeout in nanoseconds, or
+0 for no timeout. |
+
deadline, waitUntilNotified
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ForwardingTimeout(Timeout delegate)+
public final Timeout delegate()+
Timeout
instance to which this instance is currently delegating.public final ForwardingTimeout setDelegate(Timeout delegate)+
public Timeout timeout(long timeout, + java.util.concurrent.TimeUnit unit)+
Timeout
timeout
time before aborting an operation. Using a
+ per-operation timeout means that as long as forward progress is being made,
+ no sequence of operations will fail.
+
+ If timeout == 0
, operations will run indefinitely. (Operating
+ system timeouts may still apply.)
public long timeoutNanos()+
Timeout
0
for no timeout.timeoutNanos
in class Timeout
public boolean hasDeadline()+
Timeout
hasDeadline
in class Timeout
public long deadlineNanoTime()+
Timeout
deadlineNanoTime
in class Timeout
public Timeout deadlineNanoTime(long deadlineNanoTime)+
Timeout
deadlineNanoTime
in class Timeout
public Timeout clearTimeout()+
Timeout
clearTimeout
in class Timeout
public Timeout clearDeadline()+
Timeout
clearDeadline
in class Timeout
public void throwIfReached() + throws java.io.IOException+
Timeout
InterruptedIOException
if the deadline has been reached or if the current
+ thread has been interrupted. This method doesn't detect timeouts; that should be implemented to
+ asynchronously abort an in-progress operation.throwIfReached
in class Timeout
java.io.IOException
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/GzipSink.html b/1.x/okio/okio/GzipSink.html new file mode 100644 index 0000000000..cc4ed3bcc9 --- /dev/null +++ b/1.x/okio/okio/GzipSink.html @@ -0,0 +1,396 @@ + + + + + + +public final class GzipSink +extends java.lang.Object +implements Sink+
flush()
immediately compresses all currently-buffered data;
+ this early compression may be less effective than compression performed
+ without flushing.
+
+ This is equivalent to using Deflater
with the sync flush option.
+ This class does not offer any partial flush mechanism. For best performance,
+ only call flush()
when application behavior requires it.
Constructor and Description | +
---|
GzipSink(Sink sink) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+close()
+Pushes all buffered bytes to their final destination and releases the
+ resources held by this sink.
+ |
+
java.util.zip.Deflater |
+deflater()
+Returns the
+Deflater . |
+
void |
+flush()
+Pushes all buffered bytes to their final destination.
+ |
+
Timeout |
+timeout()
+Returns the timeout for this sink.
+ |
+
void |
+write(Buffer source,
+ long byteCount)
+Removes
+byteCount bytes from source and appends them to this. |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void write(Buffer source, + long byteCount) + throws java.io.IOException+
Sink
byteCount
bytes from source
and appends them to this.public void flush() + throws java.io.IOException+
Sink
public Timeout timeout()+
Sink
public void close() + throws java.io.IOException+
Sink
public final java.util.zip.Deflater deflater()+
Deflater
.
+ Use it to access stats, dictionary, compression level, etc.Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/GzipSource.html b/1.x/okio/okio/GzipSource.html new file mode 100644 index 0000000000..2c06e19ad6 --- /dev/null +++ b/1.x/okio/okio/GzipSource.html @@ -0,0 +1,344 @@ + + + + + + +Constructor and Description | +
---|
GzipSource(Source source) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+close()
+Closes this source and releases the resources held by this source.
+ |
+
long |
+read(Buffer sink,
+ long byteCount)
+Removes at least 1, and up to
+byteCount bytes from this and appends
+ them to sink . |
+
Timeout |
+timeout()
+Returns the timeout for this source.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public long read(Buffer sink, + long byteCount) + throws java.io.IOException+
Source
byteCount
bytes from this and appends
+ them to sink
. Returns the number of bytes read, or -1 if this
+ source is exhausted.public Timeout timeout()+
Source
public void close() + throws java.io.IOException+
Source
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/HashingSink.html b/1.x/okio/okio/HashingSink.html new file mode 100644 index 0000000000..d889c4a5e7 --- /dev/null +++ b/1.x/okio/okio/HashingSink.html @@ -0,0 +1,419 @@ + + + + + + +public final class HashingSink +extends ForwardingSink+
hash()
to compute the final hash value.
+
+ In this example we use HashingSink
with a BufferedSink
to make writing to the
+ sink easier.
+
+ HashingSink hashingSink = HashingSink.sha256(s);
+ BufferedSink bufferedSink = Okio.buffer(hashingSink);
+
+ ... // Write to bufferedSink and either flush or close it.
+
+ ByteString hash = hashingSink.hash();
+
Modifier and Type | +Method and Description | +
---|---|
ByteString |
+hash()
+Returns the hash of the bytes accepted thus far and resets the internal state of this sink.
+ |
+
static HashingSink |
+hmacSha1(Sink sink,
+ ByteString key)
+Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+ |
+
static HashingSink |
+hmacSha256(Sink sink,
+ ByteString key)
+Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+ |
+
static HashingSink |
+hmacSha512(Sink sink,
+ ByteString key)
+Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.
+ |
+
static HashingSink |
+md5(Sink sink)
+Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
+ |
+
static HashingSink |
+sha1(Sink sink)
+Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
+ |
+
static HashingSink |
+sha256(Sink sink)
+Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
+ |
+
static HashingSink |
+sha512(Sink sink)
+Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.
+ |
+
void |
+write(Buffer source,
+ long byteCount)
+Removes
+byteCount bytes from source and appends them to this. |
+
close, delegate, flush, timeout, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static HashingSink md5(Sink sink)+
public static HashingSink sha1(Sink sink)+
public static HashingSink sha256(Sink sink)+
public static HashingSink sha512(Sink sink)+
public static HashingSink hmacSha1(Sink sink, + ByteString key)+
public static HashingSink hmacSha256(Sink sink, + ByteString key)+
public static HashingSink hmacSha512(Sink sink, + ByteString key)+
public void write(Buffer source, + long byteCount) + throws java.io.IOException+
Sink
byteCount
bytes from source
and appends them to this.write
in interface Sink
write
in class ForwardingSink
java.io.IOException
public final ByteString hash()+
Warning: This method is not idempotent. Each time this method is called its + internal state is cleared. This starts a new hash with zero bytes accepted.
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/HashingSource.html b/1.x/okio/okio/HashingSource.html new file mode 100644 index 0000000000..8b0590ed67 --- /dev/null +++ b/1.x/okio/okio/HashingSource.html @@ -0,0 +1,388 @@ + + + + + + +public final class HashingSource +extends ForwardingSource+
hash()
to compute the final hash value.
+
+ In this example we use HashingSource
with a BufferedSource
to make reading
+ from the source easier.
+
+ HashingSource hashingSource = HashingSource.sha256(rawSource);
+ BufferedSource bufferedSource = Okio.buffer(hashingSource);
+
+ ... // Read all of bufferedSource.
+
+ ByteString hash = hashingSource.hash();
+
Modifier and Type | +Method and Description | +
---|---|
ByteString |
+hash()
+Returns the hash of the bytes supplied thus far and resets the internal state of this source.
+ |
+
static HashingSource |
+hmacSha1(Source source,
+ ByteString key)
+Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+ |
+
static HashingSource |
+hmacSha256(Source source,
+ ByteString key)
+Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+ |
+
static HashingSource |
+md5(Source source)
+Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
+ |
+
long |
+read(Buffer sink,
+ long byteCount)
+Removes at least 1, and up to
+byteCount bytes from this and appends
+ them to sink . |
+
static HashingSource |
+sha1(Source source)
+Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
+ |
+
static HashingSource |
+sha256(Source source)
+Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static HashingSource md5(Source source)+
public static HashingSource sha1(Source source)+
public static HashingSource sha256(Source source)+
public static HashingSource hmacSha1(Source source, + ByteString key)+
public static HashingSource hmacSha256(Source source, + ByteString key)+
public long read(Buffer sink, + long byteCount) + throws java.io.IOException+
Source
byteCount
bytes from this and appends
+ them to sink
. Returns the number of bytes read, or -1 if this
+ source is exhausted.read
in interface Source
read
in class ForwardingSource
java.io.IOException
public final ByteString hash()+
Warning: This method is not idempotent. Each time this method is called its + internal state is cleared. This starts a new hash with zero bytes supplied.
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/InflaterSource.html b/1.x/okio/okio/InflaterSource.html new file mode 100644 index 0000000000..86fb6f006d --- /dev/null +++ b/1.x/okio/okio/InflaterSource.html @@ -0,0 +1,369 @@ + + + + + + +Constructor and Description | +
---|
InflaterSource(Source source,
+ java.util.zip.Inflater inflater) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+close()
+Closes this source and releases the resources held by this source.
+ |
+
long |
+read(Buffer sink,
+ long byteCount)
+Removes at least 1, and up to
+byteCount bytes from this and appends
+ them to sink . |
+
boolean |
+refill()
+Refills the inflater with compressed data if it needs input.
+ |
+
Timeout |
+timeout()
+Returns the timeout for this source.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public InflaterSource(Source source, + java.util.zip.Inflater inflater)+
public long read(Buffer sink, + long byteCount) + throws java.io.IOException+
Source
byteCount
bytes from this and appends
+ them to sink
. Returns the number of bytes read, or -1 if this
+ source is exhausted.public final boolean refill() + throws java.io.IOException+
java.io.IOException
public Timeout timeout()+
Source
public void close() + throws java.io.IOException+
Source
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/Okio.html b/1.x/okio/okio/Okio.html new file mode 100644 index 0000000000..8ca242aee5 --- /dev/null +++ b/1.x/okio/okio/Okio.html @@ -0,0 +1,464 @@ + + + + + + +public final class Okio
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
static Sink |
+appendingSink(java.io.File file)
+Returns a sink that appends to
+file . |
+
static Sink |
+blackhole()
+Returns a sink that writes nowhere.
+ |
+
static BufferedSink |
+buffer(Sink sink)
+Returns a new sink that buffers writes to
+sink . |
+
static BufferedSource |
+buffer(Source source)
+Returns a new source that buffers reads from
+source . |
+
static Sink |
+sink(java.io.File file)
+Returns a sink that writes to
+file . |
+
static Sink |
+sink(java.io.OutputStream out)
+Returns a sink that writes to
+out . |
+
static Sink |
+sink(java.nio.file.Path path,
+ java.nio.file.OpenOption... options)
+Returns a sink that writes to
+path . |
+
static Sink |
+sink(java.net.Socket socket)
+Returns a sink that writes to
+socket . |
+
static Source |
+source(java.io.File file)
+Returns a source that reads from
+file . |
+
static Source |
+source(java.io.InputStream in)
+Returns a source that reads from
+in . |
+
static Source |
+source(java.nio.file.Path path,
+ java.nio.file.OpenOption... options)
+Returns a source that reads from
+path . |
+
static Source |
+source(java.net.Socket socket)
+Returns a source that reads from
+socket . |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static BufferedSource buffer(Source source)+
source
. The returned
+ source will perform bulk reads into its in-memory buffer. Use this wherever
+ you read a source to get an ergonomic and efficient access to data.public static BufferedSink buffer(Sink sink)+
sink
. The returned sink
+ will batch writes to sink
. Use this wherever you write to a sink to
+ get an ergonomic and efficient access to data.public static Sink sink(java.io.OutputStream out)+
out
.public static Sink sink(java.net.Socket socket) + throws java.io.IOException+
socket
. Prefer this over sink(OutputStream)
because this method honors timeouts. When the socket
+ write times out, the socket is asynchronously closed by a watchdog thread.java.io.IOException
public static Source source(java.io.InputStream in)+
in
.public static Source source(java.io.File file) + throws java.io.FileNotFoundException+
file
.java.io.FileNotFoundException
@IgnoreJRERequirement +public static Source source(java.nio.file.Path path, + java.nio.file.OpenOption... options) + throws java.io.IOException+
path
.java.io.IOException
public static Sink sink(java.io.File file) + throws java.io.FileNotFoundException+
file
.java.io.FileNotFoundException
public static Sink appendingSink(java.io.File file) + throws java.io.FileNotFoundException+
file
.java.io.FileNotFoundException
@IgnoreJRERequirement +public static Sink sink(java.nio.file.Path path, + java.nio.file.OpenOption... options) + throws java.io.IOException+
path
.java.io.IOException
public static Sink blackhole()+
public static Source source(java.net.Socket socket) + throws java.io.IOException+
socket
. Prefer this over source(InputStream)
because this method honors timeouts. When the socket
+ read times out, the socket is asynchronously closed by a watchdog thread.java.io.IOException
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/Options.html b/1.x/okio/okio/Options.html new file mode 100644 index 0000000000..0425817367 --- /dev/null +++ b/1.x/okio/okio/Options.html @@ -0,0 +1,343 @@ + + + + + + +public final class Options +extends java.util.AbstractList<ByteString> +implements java.util.RandomAccess+
BufferedSource.select(okio.Options)
.Modifier and Type | +Method and Description | +
---|---|
ByteString |
+get(int i) |
+
static Options |
+of(ByteString... byteStrings) |
+
int |
+size() |
+
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
forEach
public static Options of(ByteString... byteStrings)+
public ByteString get(int i)+
get
in interface java.util.List<ByteString>
get
in class java.util.AbstractList<ByteString>
public final int size()+
size
in interface java.util.Collection<ByteString>
size
in interface java.util.List<ByteString>
size
in class java.util.AbstractCollection<ByteString>
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/Pipe.html b/1.x/okio/okio/Pipe.html new file mode 100644 index 0000000000..3d07ce5fa9 --- /dev/null +++ b/1.x/okio/okio/Pipe.html @@ -0,0 +1,298 @@ + + + + + + +public final class Pipe
+extends java.lang.Object
+This class uses a buffer to decouple source and sink. This buffer has a user-specified maximum + size. When a producer thread outruns its consumer the buffer fills up and eventually writes to + the sink will block until the consumer has caught up. Symmetrically, if a consumer outruns its + producer reads block until there is data to be read. Limits on the amount of time spent waiting + for the other party can be configured with timeouts on the source and the + sink. + +
When the sink is closed, source reads will continue to complete normally until the buffer has
+ been exhausted. At that point reads will return -1, indicating the end of the stream. But if the
+ source is closed first, writes to the sink will immediately fail with an IOException
.
Constructor and Description | +
---|
Pipe(long maxBufferSize) |
+
Modifier and Type | +Method and Description | +
---|---|
Sink |
+sink() |
+
Source |
+source() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/Sink.html b/1.x/okio/okio/Sink.html new file mode 100644 index 0000000000..215b9d9845 --- /dev/null +++ b/1.x/okio/okio/Sink.html @@ -0,0 +1,335 @@ + + + + + + +public interface Sink
+extends java.io.Closeable, java.io.Flushable
+Most application code shouldn't operate on a sink directly, but rather on a
+ BufferedSink
which is both more efficient and more convenient. Use
+ Okio.buffer(Sink)
to wrap any sink with a buffer.
+
+
Sinks are easy to test: just use a Buffer
in your tests, and
+ read from it to confirm it received the data that was expected.
+
+
OutputStream
.
+
+ OutputStream
requires multiple layers when emitted data is
+ heterogeneous: a DataOutputStream
for primitive values, a BufferedOutputStream
for buffering, and OutputStreamWriter
for
+ charset encoding. This class uses BufferedSink
for all of the above.
+
+
Sink is also easier to layer: there is no single-byte write method that is awkward to + implement efficiently. + +
Okio.sink(java.io.OutputStream)
to adapt an OutputStream
to a sink. Use BufferedSink.outputStream()
to adapt a sink to an OutputStream
.Modifier and Type | +Method and Description | +
---|---|
void |
+close()
+Pushes all buffered bytes to their final destination and releases the
+ resources held by this sink.
+ |
+
void |
+flush()
+Pushes all buffered bytes to their final destination.
+ |
+
Timeout |
+timeout()
+Returns the timeout for this sink.
+ |
+
void |
+write(Buffer source,
+ long byteCount)
+Removes
+byteCount bytes from source and appends them to this. |
+
void write(Buffer source, + long byteCount) + throws java.io.IOException+
byteCount
bytes from source
and appends them to this.java.io.IOException
void flush() + throws java.io.IOException+
flush
in interface java.io.Flushable
java.io.IOException
Timeout timeout()+
void close() + throws java.io.IOException+
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/Source.html b/1.x/okio/okio/Source.html new file mode 100644 index 0000000000..32c364372f --- /dev/null +++ b/1.x/okio/okio/Source.html @@ -0,0 +1,323 @@ + + + + + + +public interface Source
+extends java.io.Closeable
+Most applications shouldn't operate on a source directly, but rather on a
+ BufferedSource
which is both more efficient and more convenient. Use
+ Okio.buffer(Source)
to wrap any source with a buffer.
+
+
Sources are easy to test: just use a Buffer
in your tests, and
+ fill it with the data your application is to read.
+
+
InputStream
.
+
+ InputStream
requires multiple layers when consumed data is
+ heterogeneous: a DataInputStream
for primitive values, a BufferedInputStream
for buffering, and InputStreamReader
for
+ strings. This class uses BufferedSource
for all of the above.
+
+
Source avoids the impossible-to-implement available() method. Instead callers specify
+ how many bytes they require
.
+
+
Source omits the unsafe-to-compose mark and reset state that's tracked by InputStream
; instead, callers
+ just buffer what they need.
+
+
When implementing a source, you don't need to worry about the single-byte read method that is awkward to implement efficiently + and returns one of 257 possible values. + +
And source has a stronger skip
method: BufferedSource.skip(long)
+ won't return prematurely.
+
+
Okio.source(java.io.InputStream)
to adapt an InputStream
to a source. Use
+ BufferedSource.inputStream()
to adapt a source to an InputStream
.Modifier and Type | +Method and Description | +
---|---|
void |
+close()
+Closes this source and releases the resources held by this source.
+ |
+
long |
+read(Buffer sink,
+ long byteCount)
+Removes at least 1, and up to
+byteCount bytes from this and appends
+ them to sink . |
+
Timeout |
+timeout()
+Returns the timeout for this source.
+ |
+
long read(Buffer sink, + long byteCount) + throws java.io.IOException+
byteCount
bytes from this and appends
+ them to sink
. Returns the number of bytes read, or -1 if this
+ source is exhausted.java.io.IOException
Timeout timeout()+
void close() + throws java.io.IOException+
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
java.io.IOException
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/Timeout.html b/1.x/okio/okio/Timeout.html new file mode 100644 index 0000000000..3627d7fbd1 --- /dev/null +++ b/1.x/okio/okio/Timeout.html @@ -0,0 +1,545 @@ + + + + + + +public class Timeout
+extends java.lang.Object
+Timeouts specify the maximum time to wait for a single + operation to complete. Timeouts are typically used to detect problems like + network partitions. For example, if a remote peer doesn't return any + data for ten seconds, we may assume that the peer is unavailable. + +
Deadlines specify the maximum time to spend on a job, + composed of one or more operations. Use deadlines to set an upper bound on + the time invested on a job. For example, a battery-conscious app may limit + how much time it spends pre-loading content.
Modifier and Type | +Field and Description | +
---|---|
static Timeout |
+NONE
+An empty timeout that neither tracks nor detects timeouts.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
Timeout |
+clearDeadline()
+Clears the deadline.
+ |
+
Timeout |
+clearTimeout()
+Clears the timeout.
+ |
+
Timeout |
+deadline(long duration,
+ java.util.concurrent.TimeUnit unit)
+Set a deadline of now plus
+duration time. |
+
long |
+deadlineNanoTime()
+Returns the nano time when the deadline will
+ be reached.
+ |
+
Timeout |
+deadlineNanoTime(long deadlineNanoTime)
+Sets the nano time when the deadline will be
+ reached.
+ |
+
boolean |
+hasDeadline()
+Returns true if a deadline is enabled.
+ |
+
void |
+throwIfReached()
+Throws an
+InterruptedIOException if the deadline has been reached or if the current
+ thread has been interrupted. |
+
Timeout |
+timeout(long timeout,
+ java.util.concurrent.TimeUnit unit)
+Wait at most
+timeout time before aborting an operation. |
+
long |
+timeoutNanos()
+Returns the timeout in nanoseconds, or
+0 for no timeout. |
+
void |
+waitUntilNotified(java.lang.Object monitor)
+Waits on
+monitor until it is notified. |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final Timeout NONE+
public Timeout timeout(long timeout, + java.util.concurrent.TimeUnit unit)+
timeout
time before aborting an operation. Using a
+ per-operation timeout means that as long as forward progress is being made,
+ no sequence of operations will fail.
+
+ If timeout == 0
, operations will run indefinitely. (Operating
+ system timeouts may still apply.)
public long timeoutNanos()+
0
for no timeout.public boolean hasDeadline()+
public long deadlineNanoTime()+
java.lang.IllegalStateException
- if no deadline is set.public Timeout deadlineNanoTime(long deadlineNanoTime)+
public final Timeout deadline(long duration, + java.util.concurrent.TimeUnit unit)+
duration
time.public Timeout clearTimeout()+
public Timeout clearDeadline()+
public void throwIfReached() + throws java.io.IOException+
InterruptedIOException
if the deadline has been reached or if the current
+ thread has been interrupted. This method doesn't detect timeouts; that should be implemented to
+ asynchronously abort an in-progress operation.java.io.IOException
public final void waitUntilNotified(java.lang.Object monitor) + throws java.io.InterruptedIOException+
monitor
until it is notified. Throws InterruptedIOException
if either
+ the thread is interrupted or if this timeout elapses before monitor
is notified. The
+ caller must be synchronized on monitor
.
+
+ Here's a sample class that uses waitUntilNotified()
to await a specific state. Note
+ that the call is made within a loop to avoid unnecessary waiting and to mitigate spurious
+ notifications.
+
+ class Dice {
+ Random random = new Random();
+ int latestTotal;
+
+ public synchronized void roll() {
+ latestTotal = 2 + random.nextInt(6) + random.nextInt(6);
+ System.out.println("Rolled " + latestTotal);
+ notifyAll();
+ }
+
+ public void rollAtFixedRate(int period, TimeUnit timeUnit) {
+ Executors.newScheduledThreadPool(0).scheduleAtFixedRate(new Runnable() {
+ public void run() {
+ roll();
+ }
+ }, 0, period, timeUnit);
+ }
+
+ public synchronized void awaitTotal(Timeout timeout, int total)
+ throws InterruptedIOException {
+ while (latestTotal != total) {
+ timeout.waitUntilNotified(this);
+ }
+ }
+ }
+
java.io.InterruptedIOException
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/Utf8.html b/1.x/okio/okio/Utf8.html new file mode 100644 index 0000000000..afba65558e --- /dev/null +++ b/1.x/okio/okio/Utf8.html @@ -0,0 +1,307 @@ + + + + + + +public final class Utf8
+extends java.lang.Object
++ | ByteString |
+ Buffer , BufferedSink , BufferedSource |
+
---|---|---|
Encode a string | +ByteString.encodeUtf8(String) |
+ BufferedSink.writeUtf8(String) |
+
Encode a code point | ++ | BufferedSink.writeUtf8CodePoint(int) |
+
Decode a string | +ByteString.utf8() |
+ BufferedSource.readUtf8() , BufferedSource.readUtf8(long) |
+
Decode a code point | ++ | BufferedSource.readUtf8CodePoint() |
+
Decode until the next \r\n or \n |
+ + | BufferedSource.readUtf8LineStrict() ,
+ BufferedSource.readUtf8LineStrict(long) |
+
Decode until the next \r\n , \n , or EOF |
+ + | BufferedSource.readUtf8Line() |
+
Measure the bytes in a UTF-8 string | +size(java.lang.String) , size(String, int, int) |
+
Modifier and Type | +Method and Description | +
---|---|
static long |
+size(java.lang.String string)
+Returns the number of bytes used to encode
+string as UTF-8 when using ByteString.encodeUtf8(java.lang.String) or Buffer.writeUtf8(String) . |
+
static long |
+size(java.lang.String string,
+ int beginIndex,
+ int endIndex)
+Returns the number of bytes used to encode the slice of
+string as UTF-8 when using
+ BufferedSink.writeUtf8(String, int, int) . |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static long size(java.lang.String string)+
string
as UTF-8 when using ByteString.encodeUtf8(java.lang.String)
or Buffer.writeUtf8(String)
.public static long size(java.lang.String string, + int beginIndex, + int endIndex)+
string
as UTF-8 when using
+ BufferedSink.writeUtf8(String, int, int)
.Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/AsyncTimeout.html b/1.x/okio/okio/class-use/AsyncTimeout.html new file mode 100644 index 0000000000..739dc7ea7f --- /dev/null +++ b/1.x/okio/okio/class-use/AsyncTimeout.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/Buffer.UnsafeCursor.html b/1.x/okio/okio/class-use/Buffer.UnsafeCursor.html new file mode 100644 index 0000000000..780f945d07 --- /dev/null +++ b/1.x/okio/okio/class-use/Buffer.UnsafeCursor.html @@ -0,0 +1,178 @@ + + + + + + +Modifier and Type | +Method and Description | +
---|---|
Buffer.UnsafeCursor |
+Buffer.readAndWriteUnsafe() |
+
Buffer.UnsafeCursor |
+Buffer.readAndWriteUnsafe(Buffer.UnsafeCursor unsafeCursor) |
+
Buffer.UnsafeCursor |
+Buffer.readUnsafe() |
+
Buffer.UnsafeCursor |
+Buffer.readUnsafe(Buffer.UnsafeCursor unsafeCursor) |
+
Modifier and Type | +Method and Description | +
---|---|
Buffer.UnsafeCursor |
+Buffer.readAndWriteUnsafe(Buffer.UnsafeCursor unsafeCursor) |
+
Buffer.UnsafeCursor |
+Buffer.readUnsafe(Buffer.UnsafeCursor unsafeCursor) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/Buffer.html b/1.x/okio/okio/class-use/Buffer.html new file mode 100644 index 0000000000..2d9dabdddb --- /dev/null +++ b/1.x/okio/okio/class-use/Buffer.html @@ -0,0 +1,403 @@ + + + + + + +Modifier and Type | +Field and Description | +
---|---|
Buffer |
+Buffer.UnsafeCursor.buffer |
+
Modifier and Type | +Method and Description | +
---|---|
Buffer |
+BufferedSink.buffer()
+Returns this sink's internal buffer.
+ |
+
Buffer |
+BufferedSource.buffer()
+Returns this source's internal buffer.
+ |
+
Buffer |
+Buffer.buffer() |
+
Buffer |
+Buffer.clone()
+Returns a deep copy of this buffer.
+ |
+
Buffer |
+Buffer.copyTo(Buffer out,
+ long offset,
+ long byteCount)
+Copy
+byteCount bytes from this, starting at offset , to out . |
+
Buffer |
+Buffer.copyTo(java.io.OutputStream out)
+Copy the contents of this to
+out . |
+
Buffer |
+Buffer.copyTo(java.io.OutputStream out,
+ long offset,
+ long byteCount)
+Copy
+byteCount bytes from this, starting at offset , to
+ out . |
+
Buffer |
+Buffer.emitCompleteSegments() |
+
Buffer |
+Buffer.readFrom(java.io.InputStream in)
+Read and exhaust bytes from
+in to this. |
+
Buffer |
+Buffer.readFrom(java.io.InputStream in,
+ long byteCount)
+Read
+byteCount bytes from in to this. |
+
Buffer |
+Buffer.write(byte[] source) |
+
Buffer |
+Buffer.write(byte[] source,
+ int offset,
+ int byteCount) |
+
Buffer |
+Buffer.write(ByteString byteString) |
+
Buffer |
+Buffer.writeByte(int b) |
+
Buffer |
+Buffer.writeDecimalLong(long v) |
+
Buffer |
+Buffer.writeHexadecimalUnsignedLong(long v) |
+
Buffer |
+Buffer.writeInt(int i) |
+
Buffer |
+Buffer.writeIntLe(int i) |
+
Buffer |
+Buffer.writeLong(long v) |
+
Buffer |
+Buffer.writeLongLe(long v) |
+
Buffer |
+Buffer.writeShort(int s) |
+
Buffer |
+Buffer.writeShortLe(int s) |
+
Buffer |
+Buffer.writeString(java.lang.String string,
+ java.nio.charset.Charset charset) |
+
Buffer |
+Buffer.writeString(java.lang.String string,
+ int beginIndex,
+ int endIndex,
+ java.nio.charset.Charset charset) |
+
Buffer |
+Buffer.writeTo(java.io.OutputStream out)
+Write the contents of this to
+out . |
+
Buffer |
+Buffer.writeTo(java.io.OutputStream out,
+ long byteCount)
+Write
+byteCount bytes from this to out . |
+
Buffer |
+Buffer.writeUtf8(java.lang.String string) |
+
Buffer |
+Buffer.writeUtf8(java.lang.String string,
+ int beginIndex,
+ int endIndex) |
+
Buffer |
+Buffer.writeUtf8CodePoint(int codePoint) |
+
Modifier and Type | +Method and Description | +
---|---|
Buffer |
+Buffer.copyTo(Buffer out,
+ long offset,
+ long byteCount)
+Copy
+byteCount bytes from this, starting at offset , to out . |
+
long |
+ForwardingSource.read(Buffer sink,
+ long byteCount) |
+
long |
+GzipSource.read(Buffer sink,
+ long byteCount) |
+
long |
+InflaterSource.read(Buffer sink,
+ long byteCount) |
+
long |
+HashingSource.read(Buffer sink,
+ long byteCount) |
+
long |
+Source.read(Buffer sink,
+ long byteCount)
+Removes at least 1, and up to
+byteCount bytes from this and appends
+ them to sink . |
+
long |
+Buffer.read(Buffer sink,
+ long byteCount) |
+
void |
+BufferedSource.readFully(Buffer sink,
+ long byteCount)
+Removes exactly
+byteCount bytes from this and appends them to sink . |
+
void |
+Buffer.readFully(Buffer sink,
+ long byteCount) |
+
void |
+ForwardingSink.write(Buffer source,
+ long byteCount) |
+
void |
+DeflaterSink.write(Buffer source,
+ long byteCount) |
+
void |
+Sink.write(Buffer source,
+ long byteCount)
+Removes
+byteCount bytes from source and appends them to this. |
+
void |
+GzipSink.write(Buffer source,
+ long byteCount) |
+
void |
+HashingSink.write(Buffer source,
+ long byteCount) |
+
void |
+Buffer.write(Buffer source,
+ long byteCount) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/BufferedSink.html b/1.x/okio/okio/class-use/BufferedSink.html new file mode 100644 index 0000000000..b035e4161e --- /dev/null +++ b/1.x/okio/okio/class-use/BufferedSink.html @@ -0,0 +1,306 @@ + + + + + + +Modifier and Type | +Class and Description | +
---|---|
class |
+Buffer
+A collection of bytes in memory.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static BufferedSink |
+Okio.buffer(Sink sink)
+Returns a new sink that buffers writes to
+sink . |
+
BufferedSink |
+BufferedSink.emit()
+Writes all buffered data to the underlying sink, if one exists.
+ |
+
BufferedSink |
+Buffer.emit() |
+
BufferedSink |
+BufferedSink.emitCompleteSegments()
+Writes complete segments to the underlying sink, if one exists.
+ |
+
BufferedSink |
+BufferedSink.write(byte[] source)
+Like
+OutputStream.write(byte[]) , this writes a complete byte array to
+ this sink. |
+
BufferedSink |
+BufferedSink.write(byte[] source,
+ int offset,
+ int byteCount)
+Like
+OutputStream.write(byte[], int, int) , this writes byteCount
+ bytes of source , starting at offset . |
+
BufferedSink |
+BufferedSink.write(ByteString byteString) |
+
BufferedSink |
+BufferedSink.write(Source source,
+ long byteCount)
+Removes
+byteCount bytes from source and appends them to this sink. |
+
BufferedSink |
+Buffer.write(Source source,
+ long byteCount) |
+
BufferedSink |
+BufferedSink.writeByte(int b)
+Writes a byte to this sink.
+ |
+
BufferedSink |
+BufferedSink.writeDecimalLong(long v)
+Writes a long to this sink in signed decimal form (i.e., as a string in base 10).
+ |
+
BufferedSink |
+BufferedSink.writeHexadecimalUnsignedLong(long v)
+Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).
+ |
+
BufferedSink |
+BufferedSink.writeInt(int i)
+Writes a big-endian int to this sink using four bytes.
+ |
+
BufferedSink |
+BufferedSink.writeIntLe(int i)
+Writes a little-endian int to this sink using four bytes.
+ |
+
BufferedSink |
+BufferedSink.writeLong(long v)
+Writes a big-endian long to this sink using eight bytes.
+ |
+
BufferedSink |
+BufferedSink.writeLongLe(long v)
+Writes a little-endian long to this sink using eight bytes.
+ |
+
BufferedSink |
+BufferedSink.writeShort(int s)
+Writes a big-endian short to this sink using two bytes.
+ |
+
BufferedSink |
+BufferedSink.writeShortLe(int s)
+Writes a little-endian short to this sink using two bytes.
+ |
+
BufferedSink |
+BufferedSink.writeString(java.lang.String string,
+ java.nio.charset.Charset charset)
+Encodes
+string in charset and writes it to this sink. |
+
BufferedSink |
+BufferedSink.writeString(java.lang.String string,
+ int beginIndex,
+ int endIndex,
+ java.nio.charset.Charset charset)
+Encodes the characters at
+beginIndex up to endIndex from string in
+ charset and writes it to this sink. |
+
BufferedSink |
+BufferedSink.writeUtf8(java.lang.String string)
+Encodes
+string in UTF-8 and writes it to this sink. |
+
BufferedSink |
+BufferedSink.writeUtf8(java.lang.String string,
+ int beginIndex,
+ int endIndex)
+Encodes the characters at
+beginIndex up to endIndex from string in
+ UTF-8 and writes it to this sink. |
+
BufferedSink |
+BufferedSink.writeUtf8CodePoint(int codePoint)
+Encodes
+codePoint in UTF-8 and writes it to this sink. |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/BufferedSource.html b/1.x/okio/okio/class-use/BufferedSource.html new file mode 100644 index 0000000000..ca594229e5 --- /dev/null +++ b/1.x/okio/okio/class-use/BufferedSource.html @@ -0,0 +1,166 @@ + + + + + + +Modifier and Type | +Class and Description | +
---|---|
class |
+Buffer
+A collection of bytes in memory.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static BufferedSource |
+Okio.buffer(Source source)
+Returns a new source that buffers reads from
+source . |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/ByteString.html b/1.x/okio/okio/class-use/ByteString.html new file mode 100644 index 0000000000..89fe8467a8 --- /dev/null +++ b/1.x/okio/okio/class-use/ByteString.html @@ -0,0 +1,578 @@ + + + + + + +Modifier and Type | +Field and Description | +
---|---|
static ByteString |
+ByteString.EMPTY
+A singleton empty
+ByteString . |
+
Modifier and Type | +Method and Description | +
---|---|
static ByteString |
+ByteString.decodeBase64(java.lang.String base64)
+Decodes the Base64-encoded bytes and returns their value as a byte string.
+ |
+
static ByteString |
+ByteString.decodeHex(java.lang.String hex)
+Decodes the hex-encoded bytes and returns their value a byte string.
+ |
+
static ByteString |
+ByteString.encodeString(java.lang.String s,
+ java.nio.charset.Charset charset)
+Returns a new byte string containing the
+charset -encoded bytes of s . |
+
static ByteString |
+ByteString.encodeUtf8(java.lang.String s)
+Returns a new byte string containing the
+UTF-8 bytes of s . |
+
ByteString |
+Options.get(int i) |
+
ByteString |
+HashingSource.hash()
+Returns the hash of the bytes supplied thus far and resets the internal state of this source.
+ |
+
ByteString |
+HashingSink.hash()
+Returns the hash of the bytes accepted thus far and resets the internal state of this sink.
+ |
+
ByteString |
+ByteString.hmacSha1(ByteString key)
+Returns the 160-bit SHA-1 HMAC of this byte string.
+ |
+
ByteString |
+Buffer.hmacSha1(ByteString key)
+Returns the 160-bit SHA-1 HMAC of this buffer.
+ |
+
ByteString |
+ByteString.hmacSha256(ByteString key)
+Returns the 256-bit SHA-256 HMAC of this byte string.
+ |
+
ByteString |
+Buffer.hmacSha256(ByteString key)
+Returns the 256-bit SHA-256 HMAC of this buffer.
+ |
+
ByteString |
+ByteString.hmacSha512(ByteString key)
+Returns the 512-bit SHA-512 HMAC of this byte string.
+ |
+
ByteString |
+Buffer.hmacSha512(ByteString key)
+Returns the 512-bit SHA-512 HMAC of this buffer.
+ |
+
ByteString |
+ByteString.md5()
+Returns the 128-bit MD5 hash of this byte string.
+ |
+
ByteString |
+Buffer.md5()
+Returns the 128-bit MD5 hash of this buffer.
+ |
+
static ByteString |
+ByteString.of(byte... data)
+Returns a new byte string containing a clone of the bytes of
+data . |
+
static ByteString |
+ByteString.of(byte[] data,
+ int offset,
+ int byteCount)
+Returns a new byte string containing a copy of
+byteCount bytes of data starting
+ at offset . |
+
static ByteString |
+ByteString.of(java.nio.ByteBuffer data) |
+
static ByteString |
+ByteString.read(java.io.InputStream in,
+ int byteCount)
+Reads
+count bytes from in and returns the result. |
+
ByteString |
+BufferedSource.readByteString()
+Removes all bytes bytes from this and returns them as a byte string.
+ |
+
ByteString |
+Buffer.readByteString() |
+
ByteString |
+BufferedSource.readByteString(long byteCount)
+Removes
+byteCount bytes from this and returns them as a byte string. |
+
ByteString |
+Buffer.readByteString(long byteCount) |
+
ByteString |
+ByteString.sha1()
+Returns the 160-bit SHA-1 hash of this byte string.
+ |
+
ByteString |
+Buffer.sha1()
+Returns the 160-bit SHA-1 hash of this buffer.
+ |
+
ByteString |
+ByteString.sha256()
+Returns the 256-bit SHA-256 hash of this byte string.
+ |
+
ByteString |
+Buffer.sha256()
+Returns the 256-bit SHA-256 hash of this buffer.
+ |
+
ByteString |
+ByteString.sha512()
+Returns the 512-bit SHA-512 hash of this byte string.
+ |
+
ByteString |
+Buffer.sha512()
+Returns the 512-bit SHA-512 hash of this buffer.
+ |
+
ByteString |
+Buffer.snapshot()
+Returns an immutable copy of this buffer as a byte string.
+ |
+
ByteString |
+Buffer.snapshot(int byteCount)
+Returns an immutable copy of the first
+byteCount bytes of this buffer as a byte string. |
+
ByteString |
+ByteString.substring(int beginIndex)
+Returns a byte string that is a substring of this byte string, beginning at the specified
+ index until the end of this string.
+ |
+
ByteString |
+ByteString.substring(int beginIndex,
+ int endIndex)
+Returns a byte string that is a substring of this byte string, beginning at the specified
+
+beginIndex and ends at the specified endIndex . |
+
ByteString |
+ByteString.toAsciiLowercase()
+Returns a byte string equal to this byte string, but with the bytes 'A'
+ through 'Z' replaced with the corresponding byte in 'a' through 'z'.
+ |
+
ByteString |
+ByteString.toAsciiUppercase()
+Returns a byte string equal to this byte string, but with the bytes 'a'
+ through 'z' replaced with the corresponding byte in 'A' through 'Z'.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+ByteString.compareTo(ByteString byteString) |
+
boolean |
+ByteString.endsWith(ByteString suffix) |
+
ByteString |
+ByteString.hmacSha1(ByteString key)
+Returns the 160-bit SHA-1 HMAC of this byte string.
+ |
+
ByteString |
+Buffer.hmacSha1(ByteString key)
+Returns the 160-bit SHA-1 HMAC of this buffer.
+ |
+
static HashingSink |
+HashingSink.hmacSha1(Sink sink,
+ ByteString key)
+Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+ |
+
static HashingSource |
+HashingSource.hmacSha1(Source source,
+ ByteString key)
+Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+ |
+
ByteString |
+ByteString.hmacSha256(ByteString key)
+Returns the 256-bit SHA-256 HMAC of this byte string.
+ |
+
ByteString |
+Buffer.hmacSha256(ByteString key)
+Returns the 256-bit SHA-256 HMAC of this buffer.
+ |
+
static HashingSink |
+HashingSink.hmacSha256(Sink sink,
+ ByteString key)
+Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+ |
+
static HashingSource |
+HashingSource.hmacSha256(Source source,
+ ByteString key)
+Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+ |
+
ByteString |
+ByteString.hmacSha512(ByteString key)
+Returns the 512-bit SHA-512 HMAC of this byte string.
+ |
+
ByteString |
+Buffer.hmacSha512(ByteString key)
+Returns the 512-bit SHA-512 HMAC of this buffer.
+ |
+
static HashingSink |
+HashingSink.hmacSha512(Sink sink,
+ ByteString key)
+Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.
+ |
+
int |
+ByteString.indexOf(ByteString other) |
+
long |
+BufferedSource.indexOf(ByteString bytes)
+Equivalent to
+indexOf(bytes, 0) . |
+
long |
+Buffer.indexOf(ByteString bytes) |
+
int |
+ByteString.indexOf(ByteString other,
+ int fromIndex) |
+
long |
+BufferedSource.indexOf(ByteString bytes,
+ long fromIndex)
+Returns the index of the first match for
+bytes in the buffer at or after fromIndex . |
+
long |
+Buffer.indexOf(ByteString bytes,
+ long fromIndex) |
+
long |
+BufferedSource.indexOfElement(ByteString targetBytes)
+Equivalent to
+indexOfElement(targetBytes, 0) . |
+
long |
+Buffer.indexOfElement(ByteString targetBytes) |
+
long |
+BufferedSource.indexOfElement(ByteString targetBytes,
+ long fromIndex)
+Returns the first index in this buffer that is at or after
+fromIndex and that contains
+ any of the bytes in targetBytes . |
+
long |
+Buffer.indexOfElement(ByteString targetBytes,
+ long fromIndex) |
+
int |
+ByteString.lastIndexOf(ByteString other) |
+
int |
+ByteString.lastIndexOf(ByteString other,
+ int fromIndex) |
+
static Options |
+Options.of(ByteString... byteStrings) |
+
boolean |
+ByteString.rangeEquals(int offset,
+ ByteString other,
+ int otherOffset,
+ int byteCount)
+Returns true if the bytes of this in
+[offset..offset+byteCount) equal the bytes of
+ other in [otherOffset..otherOffset+byteCount) . |
+
boolean |
+BufferedSource.rangeEquals(long offset,
+ ByteString bytes)
+Returns true if the bytes at
+offset in this source equal bytes . |
+
boolean |
+Buffer.rangeEquals(long offset,
+ ByteString bytes) |
+
boolean |
+BufferedSource.rangeEquals(long offset,
+ ByteString bytes,
+ int bytesOffset,
+ int byteCount)
+Returns true if
+byteCount bytes at offset in this source equal bytes
+ at bytesOffset . |
+
boolean |
+Buffer.rangeEquals(long offset,
+ ByteString bytes,
+ int bytesOffset,
+ int byteCount) |
+
boolean |
+ByteString.startsWith(ByteString prefix) |
+
BufferedSink |
+BufferedSink.write(ByteString byteString) |
+
Buffer |
+Buffer.write(ByteString byteString) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/DeflaterSink.html b/1.x/okio/okio/class-use/DeflaterSink.html new file mode 100644 index 0000000000..7a7824bc70 --- /dev/null +++ b/1.x/okio/okio/class-use/DeflaterSink.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/ForwardingSink.html b/1.x/okio/okio/class-use/ForwardingSink.html new file mode 100644 index 0000000000..b1f1af8758 --- /dev/null +++ b/1.x/okio/okio/class-use/ForwardingSink.html @@ -0,0 +1,151 @@ + + + + + + +Modifier and Type | +Class and Description | +
---|---|
class |
+HashingSink
+A sink that computes a hash of the full stream of bytes it has accepted.
+ |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/ForwardingSource.html b/1.x/okio/okio/class-use/ForwardingSource.html new file mode 100644 index 0000000000..1f0f2d80cc --- /dev/null +++ b/1.x/okio/okio/class-use/ForwardingSource.html @@ -0,0 +1,151 @@ + + + + + + +Modifier and Type | +Class and Description | +
---|---|
class |
+HashingSource
+A source that computes a hash of the full stream of bytes it has supplied.
+ |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/ForwardingTimeout.html b/1.x/okio/okio/class-use/ForwardingTimeout.html new file mode 100644 index 0000000000..b97f4a916c --- /dev/null +++ b/1.x/okio/okio/class-use/ForwardingTimeout.html @@ -0,0 +1,149 @@ + + + + + + +Modifier and Type | +Method and Description | +
---|---|
ForwardingTimeout |
+ForwardingTimeout.setDelegate(Timeout delegate) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/GzipSink.html b/1.x/okio/okio/class-use/GzipSink.html new file mode 100644 index 0000000000..b33256fca4 --- /dev/null +++ b/1.x/okio/okio/class-use/GzipSink.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/GzipSource.html b/1.x/okio/okio/class-use/GzipSource.html new file mode 100644 index 0000000000..cfe877ec1b --- /dev/null +++ b/1.x/okio/okio/class-use/GzipSource.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/HashingSink.html b/1.x/okio/okio/class-use/HashingSink.html new file mode 100644 index 0000000000..6d1a33cff4 --- /dev/null +++ b/1.x/okio/okio/class-use/HashingSink.html @@ -0,0 +1,190 @@ + + + + + + +Modifier and Type | +Method and Description | +
---|---|
static HashingSink |
+HashingSink.hmacSha1(Sink sink,
+ ByteString key)
+Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+ |
+
static HashingSink |
+HashingSink.hmacSha256(Sink sink,
+ ByteString key)
+Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+ |
+
static HashingSink |
+HashingSink.hmacSha512(Sink sink,
+ ByteString key)
+Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.
+ |
+
static HashingSink |
+HashingSink.md5(Sink sink)
+Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
+ |
+
static HashingSink |
+HashingSink.sha1(Sink sink)
+Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
+ |
+
static HashingSink |
+HashingSink.sha256(Sink sink)
+Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
+ |
+
static HashingSink |
+HashingSink.sha512(Sink sink)
+Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.
+ |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/HashingSource.html b/1.x/okio/okio/class-use/HashingSource.html new file mode 100644 index 0000000000..25cd47cb27 --- /dev/null +++ b/1.x/okio/okio/class-use/HashingSource.html @@ -0,0 +1,177 @@ + + + + + + +Modifier and Type | +Method and Description | +
---|---|
static HashingSource |
+HashingSource.hmacSha1(Source source,
+ ByteString key)
+Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+ |
+
static HashingSource |
+HashingSource.hmacSha256(Source source,
+ ByteString key)
+Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+ |
+
static HashingSource |
+HashingSource.md5(Source source)
+Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
+ |
+
static HashingSource |
+HashingSource.sha1(Source source)
+Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
+ |
+
static HashingSource |
+HashingSource.sha256(Source source)
+Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
+ |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/InflaterSource.html b/1.x/okio/okio/class-use/InflaterSource.html new file mode 100644 index 0000000000..a5850cb993 --- /dev/null +++ b/1.x/okio/okio/class-use/InflaterSource.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/Okio.html b/1.x/okio/okio/class-use/Okio.html new file mode 100644 index 0000000000..d7666f3ce9 --- /dev/null +++ b/1.x/okio/okio/class-use/Okio.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/Options.html b/1.x/okio/okio/class-use/Options.html new file mode 100644 index 0000000000..77c4876fc8 --- /dev/null +++ b/1.x/okio/okio/class-use/Options.html @@ -0,0 +1,169 @@ + + + + + + +Modifier and Type | +Method and Description | +
---|---|
static Options |
+Options.of(ByteString... byteStrings) |
+
Modifier and Type | +Method and Description | +
---|---|
int |
+BufferedSource.select(Options options)
+Finds the first string in
+options that is a prefix of this buffer, consumes it from
+ this buffer, and returns its index. |
+
int |
+Buffer.select(Options options) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/Pipe.html b/1.x/okio/okio/class-use/Pipe.html new file mode 100644 index 0000000000..4bef606875 --- /dev/null +++ b/1.x/okio/okio/class-use/Pipe.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/Sink.html b/1.x/okio/okio/class-use/Sink.html new file mode 100644 index 0000000000..5f5c089dd7 --- /dev/null +++ b/1.x/okio/okio/class-use/Sink.html @@ -0,0 +1,349 @@ + + + + + + +Modifier and Type | +Interface and Description | +
---|---|
interface |
+BufferedSink
+A sink that keeps a buffer internally so that callers can do small writes
+ without a performance penalty.
+ |
+
Modifier and Type | +Class and Description | +
---|---|
class |
+Buffer
+A collection of bytes in memory.
+ |
+
class |
+DeflaterSink
+A sink that uses DEFLATE to
+ compress data written to another source.
+ |
+
class |
+ForwardingSink
+A
+Sink which forwards calls to another. |
+
class |
+GzipSink
+A sink that uses GZIP to
+ compress written data to another sink.
+ |
+
class |
+HashingSink
+A sink that computes a hash of the full stream of bytes it has accepted.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
static Sink |
+Okio.appendingSink(java.io.File file)
+Returns a sink that appends to
+file . |
+
static Sink |
+Okio.blackhole()
+Returns a sink that writes nowhere.
+ |
+
Sink |
+ForwardingSink.delegate()
+Sink to which this instance is delegating. |
+
Sink |
+Pipe.sink() |
+
static Sink |
+Okio.sink(java.io.File file)
+Returns a sink that writes to
+file . |
+
static Sink |
+Okio.sink(java.io.OutputStream out)
+Returns a sink that writes to
+out . |
+
static Sink |
+Okio.sink(java.nio.file.Path path,
+ java.nio.file.OpenOption... options)
+Returns a sink that writes to
+path . |
+
Sink |
+AsyncTimeout.sink(Sink sink)
+Returns a new sink that delegates to
+sink , using this to implement timeouts. |
+
static Sink |
+Okio.sink(java.net.Socket socket)
+Returns a sink that writes to
+socket . |
+
Modifier and Type | +Method and Description | +
---|---|
static BufferedSink |
+Okio.buffer(Sink sink)
+Returns a new sink that buffers writes to
+sink . |
+
static HashingSink |
+HashingSink.hmacSha1(Sink sink,
+ ByteString key)
+Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+ |
+
static HashingSink |
+HashingSink.hmacSha256(Sink sink,
+ ByteString key)
+Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+ |
+
static HashingSink |
+HashingSink.hmacSha512(Sink sink,
+ ByteString key)
+Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.
+ |
+
static HashingSink |
+HashingSink.md5(Sink sink)
+Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
+ |
+
long |
+BufferedSource.readAll(Sink sink)
+Removes all bytes from this and appends them to
+sink . |
+
long |
+Buffer.readAll(Sink sink) |
+
static HashingSink |
+HashingSink.sha1(Sink sink)
+Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
+ |
+
static HashingSink |
+HashingSink.sha256(Sink sink)
+Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
+ |
+
static HashingSink |
+HashingSink.sha512(Sink sink)
+Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.
+ |
+
Sink |
+AsyncTimeout.sink(Sink sink)
+Returns a new sink that delegates to
+sink , using this to implement timeouts. |
+
Constructor and Description | +
---|
DeflaterSink(Sink sink,
+ java.util.zip.Deflater deflater) |
+
ForwardingSink(Sink delegate) |
+
GzipSink(Sink sink) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/Source.html b/1.x/okio/okio/class-use/Source.html new file mode 100644 index 0000000000..b683f15ae1 --- /dev/null +++ b/1.x/okio/okio/class-use/Source.html @@ -0,0 +1,336 @@ + + + + + + +Modifier and Type | +Interface and Description | +
---|---|
interface |
+BufferedSource
+A source that keeps a buffer internally so that callers can do small reads without a performance
+ penalty.
+ |
+
Modifier and Type | +Class and Description | +
---|---|
class |
+Buffer
+A collection of bytes in memory.
+ |
+
class |
+ForwardingSource
+A
+Source which forwards calls to another. |
+
class |
+GzipSource
+A source that uses GZIP to
+ decompress data read from another source.
+ |
+
class |
+HashingSource
+A source that computes a hash of the full stream of bytes it has supplied.
+ |
+
class |
+InflaterSource
+A source that uses DEFLATE
+ to decompress data read from another source.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
Source |
+ForwardingSource.delegate()
+Source to which this instance is delegating. |
+
Source |
+Pipe.source() |
+
static Source |
+Okio.source(java.io.File file)
+Returns a source that reads from
+file . |
+
static Source |
+Okio.source(java.io.InputStream in)
+Returns a source that reads from
+in . |
+
static Source |
+Okio.source(java.nio.file.Path path,
+ java.nio.file.OpenOption... options)
+Returns a source that reads from
+path . |
+
static Source |
+Okio.source(java.net.Socket socket)
+Returns a source that reads from
+socket . |
+
Source |
+AsyncTimeout.source(Source source)
+Returns a new source that delegates to
+source , using this to implement timeouts. |
+
Modifier and Type | +Method and Description | +
---|---|
static BufferedSource |
+Okio.buffer(Source source)
+Returns a new source that buffers reads from
+source . |
+
static HashingSource |
+HashingSource.hmacSha1(Source source,
+ ByteString key)
+Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
+ |
+
static HashingSource |
+HashingSource.hmacSha256(Source source,
+ ByteString key)
+Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
+ |
+
static HashingSource |
+HashingSource.md5(Source source)
+Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
+ |
+
static HashingSource |
+HashingSource.sha1(Source source)
+Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
+ |
+
static HashingSource |
+HashingSource.sha256(Source source)
+Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
+ |
+
Source |
+AsyncTimeout.source(Source source)
+Returns a new source that delegates to
+source , using this to implement timeouts. |
+
BufferedSink |
+BufferedSink.write(Source source,
+ long byteCount)
+Removes
+byteCount bytes from source and appends them to this sink. |
+
BufferedSink |
+Buffer.write(Source source,
+ long byteCount) |
+
long |
+BufferedSink.writeAll(Source source)
+Removes all bytes from
+source and appends them to this sink. |
+
long |
+Buffer.writeAll(Source source) |
+
Constructor and Description | +
---|
ForwardingSource(Source delegate) |
+
GzipSource(Source source) |
+
InflaterSource(Source source,
+ java.util.zip.Inflater inflater) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/Timeout.html b/1.x/okio/okio/class-use/Timeout.html new file mode 100644 index 0000000000..4badb6d580 --- /dev/null +++ b/1.x/okio/okio/class-use/Timeout.html @@ -0,0 +1,301 @@ + + + + + + +Modifier and Type | +Class and Description | +
---|---|
class |
+AsyncTimeout
+This timeout uses a background thread to take action exactly when the timeout occurs.
+ |
+
class |
+ForwardingTimeout
+A
+Timeout which forwards calls to another. |
+
Modifier and Type | +Field and Description | +
---|---|
static Timeout |
+Timeout.NONE
+An empty timeout that neither tracks nor detects timeouts.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
Timeout |
+ForwardingTimeout.clearDeadline() |
+
Timeout |
+Timeout.clearDeadline()
+Clears the deadline.
+ |
+
Timeout |
+ForwardingTimeout.clearTimeout() |
+
Timeout |
+Timeout.clearTimeout()
+Clears the timeout.
+ |
+
Timeout |
+Timeout.deadline(long duration,
+ java.util.concurrent.TimeUnit unit)
+Set a deadline of now plus
+duration time. |
+
Timeout |
+ForwardingTimeout.deadlineNanoTime(long deadlineNanoTime) |
+
Timeout |
+Timeout.deadlineNanoTime(long deadlineNanoTime)
+Sets the nano time when the deadline will be
+ reached.
+ |
+
Timeout |
+ForwardingTimeout.delegate()
+Timeout instance to which this instance is currently delegating. |
+
Timeout |
+ForwardingSink.timeout() |
+
Timeout |
+ForwardingSource.timeout() |
+
Timeout |
+DeflaterSink.timeout() |
+
Timeout |
+GzipSource.timeout() |
+
Timeout |
+InflaterSource.timeout() |
+
Timeout |
+Sink.timeout()
+Returns the timeout for this sink.
+ |
+
Timeout |
+GzipSink.timeout() |
+
Timeout |
+Source.timeout()
+Returns the timeout for this source.
+ |
+
Timeout |
+Buffer.timeout() |
+
Timeout |
+ForwardingTimeout.timeout(long timeout,
+ java.util.concurrent.TimeUnit unit) |
+
Timeout |
+Timeout.timeout(long timeout,
+ java.util.concurrent.TimeUnit unit)
+Wait at most
+timeout time before aborting an operation. |
+
Modifier and Type | +Method and Description | +
---|---|
ForwardingTimeout |
+ForwardingTimeout.setDelegate(Timeout delegate) |
+
Constructor and Description | +
---|
ForwardingTimeout(Timeout delegate) |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/class-use/Utf8.html b/1.x/okio/okio/class-use/Utf8.html new file mode 100644 index 0000000000..c5fdcf6adf --- /dev/null +++ b/1.x/okio/okio/class-use/Utf8.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/package-frame.html b/1.x/okio/okio/package-frame.html new file mode 100644 index 0000000000..abf9f11446 --- /dev/null +++ b/1.x/okio/okio/package-frame.html @@ -0,0 +1,45 @@ + + + + + + +@ParametersAreNonnullByDefault +
+java.io
and java.nio
to make it much easier to access, store,
+ and process your data.See: Description
+Interface | +Description | +
---|---|
BufferedSink | +
+ A sink that keeps a buffer internally so that callers can do small writes
+ without a performance penalty.
+ |
+
BufferedSource | +
+ A source that keeps a buffer internally so that callers can do small reads without a performance
+ penalty.
+ |
+
Sink | +
+ Receives a stream of bytes.
+ |
+
Source | +
+ Supplies a stream of bytes.
+ |
+
Class | +Description | +
---|---|
AsyncTimeout | +
+ This timeout uses a background thread to take action exactly when the timeout occurs.
+ |
+
Buffer | +
+ A collection of bytes in memory.
+ |
+
Buffer.UnsafeCursor | +
+ A handle to the underlying data in a buffer.
+ |
+
ByteString | +
+ An immutable sequence of bytes.
+ |
+
DeflaterSink | +
+ A sink that uses DEFLATE to
+ compress data written to another source.
+ |
+
ForwardingSink | +
+ A
+Sink which forwards calls to another. |
+
ForwardingSource | +
+ A
+Source which forwards calls to another. |
+
ForwardingTimeout | +
+ A
+Timeout which forwards calls to another. |
+
GzipSink | +
+ A sink that uses GZIP to
+ compress written data to another sink.
+ |
+
GzipSource | +
+ A source that uses GZIP to
+ decompress data read from another source.
+ |
+
HashingSink | +
+ A sink that computes a hash of the full stream of bytes it has accepted.
+ |
+
HashingSource | +
+ A source that computes a hash of the full stream of bytes it has supplied.
+ |
+
InflaterSource | +
+ A source that uses DEFLATE
+ to decompress data read from another source.
+ |
+
Okio | +
+ Essential APIs for working with Okio.
+ |
+
Options | +
+ An indexed set of values that may be read with
+BufferedSource.select(okio.Options) . |
+
Pipe | +
+ A source and a sink that are attached.
+ |
+
Timeout | +
+ A policy on how much time to spend on a task before giving up.
+ |
+
Utf8 | +
+ Okio assumes most applications use UTF-8 exclusively, and offers optimized implementations of
+ common operations on UTF-8 strings.
+ |
+
java.io
and java.nio
to make it much easier to access, store,
+ and process your data.Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/package-tree.html b/1.x/okio/okio/package-tree.html new file mode 100644 index 0000000000..c94bf30fa5 --- /dev/null +++ b/1.x/okio/okio/package-tree.html @@ -0,0 +1,211 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/okio/package-use.html b/1.x/okio/okio/package-use.html new file mode 100644 index 0000000000..84fcfad9d1 --- /dev/null +++ b/1.x/okio/okio/package-use.html @@ -0,0 +1,211 @@ + + + + + + +Class and Description | +
---|
Buffer
+ A collection of bytes in memory.
+ |
+
Buffer.UnsafeCursor
+ A handle to the underlying data in a buffer.
+ |
+
BufferedSink
+ A sink that keeps a buffer internally so that callers can do small writes
+ without a performance penalty.
+ |
+
BufferedSource
+ A source that keeps a buffer internally so that callers can do small reads without a performance
+ penalty.
+ |
+
ByteString
+ An immutable sequence of bytes.
+ |
+
ForwardingSink
+ A
+Sink which forwards calls to another. |
+
ForwardingSource
+ A
+Source which forwards calls to another. |
+
ForwardingTimeout
+ A
+Timeout which forwards calls to another. |
+
HashingSink
+ A sink that computes a hash of the full stream of bytes it has accepted.
+ |
+
HashingSource
+ A source that computes a hash of the full stream of bytes it has supplied.
+ |
+
Options
+ An indexed set of values that may be read with
+BufferedSource.select(okio.Options) . |
+
Sink
+ Receives a stream of bytes.
+ |
+
Source
+ Supplies a stream of bytes.
+ |
+
Timeout
+ A policy on how much time to spend on a task before giving up.
+ |
+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/overview-tree.html b/1.x/okio/overview-tree.html new file mode 100644 index 0000000000..2704ea8cf9 --- /dev/null +++ b/1.x/okio/overview-tree.html @@ -0,0 +1,268 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/package-list b/1.x/okio/package-list new file mode 100644 index 0000000000..1e84585768 --- /dev/null +++ b/1.x/okio/package-list @@ -0,0 +1 @@ +okio diff --git a/1.x/okio/script.js b/1.x/okio/script.js new file mode 100644 index 0000000000..b346356931 --- /dev/null +++ b/1.x/okio/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/1.x/okio/serialized-form.html b/1.x/okio/serialized-form.html new file mode 100644 index 0000000000..039e711158 --- /dev/null +++ b/1.x/okio/serialized-form.html @@ -0,0 +1,175 @@ + + + + + + +private void readObject(java.io.ObjectInputStream in) + throws java.io.IOException+
java.io.IOException
private void writeObject(java.io.ObjectOutputStream out) + throws java.io.IOException+
java.io.IOException
byte[] data+
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/okio/stylesheet.css b/1.x/okio/stylesheet.css new file mode 100644 index 0000000000..8841f37c43 --- /dev/null +++ b/1.x/okio/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/1.x/okio/version.txt b/1.x/okio/version.txt new file mode 100644 index 0000000000..141f2e805b --- /dev/null +++ b/1.x/okio/version.txt @@ -0,0 +1 @@ +1.15.0 diff --git a/1.x/samples/META-INF/MANIFEST.MF b/1.x/samples/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..1a12ffb44d --- /dev/null +++ b/1.x/samples/META-INF/MANIFEST.MF @@ -0,0 +1,6 @@ +Manifest-Version: 1.0 +Archiver-Version: Plexus Archiver +Created-By: Apache Maven +Built-By: jwilson +Build-Jdk: 1.8.0_162 + diff --git a/1.x/samples/allclasses-frame.html b/1.x/samples/allclasses-frame.html new file mode 100644 index 0000000000..c15af15a7d --- /dev/null +++ b/1.x/samples/allclasses-frame.html @@ -0,0 +1,20 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/samples/deprecated-list.html b/1.x/samples/deprecated-list.html new file mode 100644 index 0000000000..f849c0e348 --- /dev/null +++ b/1.x/samples/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/samples/help-doc.html b/1.x/samples/help-doc.html new file mode 100644 index 0000000000..d87e4a7381 --- /dev/null +++ b/1.x/samples/help-doc.html @@ -0,0 +1,225 @@ + + + + + + +Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object
. The interfaces do not inherit from java.lang.Object
.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/samples/index-all.html b/1.x/samples/index-all.html new file mode 100644 index 0000000000..b165d0c314 --- /dev/null +++ b/1.x/samples/index-all.html @@ -0,0 +1,149 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/samples/index.html b/1.x/samples/index.html new file mode 100644 index 0000000000..d81912fd1b --- /dev/null +++ b/1.x/samples/index.html @@ -0,0 +1,73 @@ + + + + + + +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to Non-frame version.
+public final class Randoms
+extends java.lang.Object
+Modifier and Type | +Method and Description | +
---|---|
static void |
+main(java.lang.String... args) |
+
void |
+run() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void run() + throws java.io.IOException, + java.lang.InterruptedException+
java.io.IOException
java.lang.InterruptedException
public static void main(java.lang.String... args) + throws java.lang.Exception+
java.lang.Exception
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/samples/okio/samples/class-use/Randoms.html b/1.x/samples/okio/samples/class-use/Randoms.html new file mode 100644 index 0000000000..236f6a8c1b --- /dev/null +++ b/1.x/samples/okio/samples/class-use/Randoms.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/samples/okio/samples/package-frame.html b/1.x/samples/okio/samples/package-frame.html new file mode 100644 index 0000000000..50baade05c --- /dev/null +++ b/1.x/samples/okio/samples/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +Class | +Description | +
---|---|
Randoms | ++ |
Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/samples/okio/samples/package-tree.html b/1.x/samples/okio/samples/package-tree.html new file mode 100644 index 0000000000..33f89a4480 --- /dev/null +++ b/1.x/samples/okio/samples/package-tree.html @@ -0,0 +1,133 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/samples/okio/samples/package-use.html b/1.x/samples/okio/samples/package-use.html new file mode 100644 index 0000000000..9ec4243356 --- /dev/null +++ b/1.x/samples/okio/samples/package-use.html @@ -0,0 +1,124 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/samples/overview-tree.html b/1.x/samples/overview-tree.html new file mode 100644 index 0000000000..ce04806f73 --- /dev/null +++ b/1.x/samples/overview-tree.html @@ -0,0 +1,137 @@ + + + + + + +Copyright © 2018. All Rights Reserved.
+ + diff --git a/1.x/samples/package-list b/1.x/samples/package-list new file mode 100644 index 0000000000..8fda5f5cf7 --- /dev/null +++ b/1.x/samples/package-list @@ -0,0 +1 @@ +okio.samples diff --git a/1.x/samples/script.js b/1.x/samples/script.js new file mode 100644 index 0000000000..b346356931 --- /dev/null +++ b/1.x/samples/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/1.x/samples/stylesheet.css b/1.x/samples/stylesheet.css new file mode 100644 index 0000000000..8841f37c43 --- /dev/null +++ b/1.x/samples/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/1.x/samples/version.txt b/1.x/samples/version.txt new file mode 100644 index 0000000000..15b989e398 --- /dev/null +++ b/1.x/samples/version.txt @@ -0,0 +1 @@ +1.16.0 diff --git a/2.x/images/anchor-copy-button.svg b/2.x/images/anchor-copy-button.svg new file mode 100644 index 0000000000..bab9d747ff --- /dev/null +++ b/2.x/images/anchor-copy-button.svg @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/2.x/images/arrow_down.svg b/2.x/images/arrow_down.svg new file mode 100644 index 0000000000..89e7df4710 --- /dev/null +++ b/2.x/images/arrow_down.svg @@ -0,0 +1,3 @@ + diff --git a/2.x/images/copy-icon.svg b/2.x/images/copy-icon.svg new file mode 100644 index 0000000000..61440f0a40 --- /dev/null +++ b/2.x/images/copy-icon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/2.x/images/copy-successful-icon.svg b/2.x/images/copy-successful-icon.svg new file mode 100644 index 0000000000..1865f739b0 --- /dev/null +++ b/2.x/images/copy-successful-icon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/2.x/images/docs_logo.svg b/2.x/images/docs_logo.svg new file mode 100644 index 0000000000..7c1e3ae8ea --- /dev/null +++ b/2.x/images/docs_logo.svg @@ -0,0 +1,7 @@ + diff --git a/2.x/images/footer-go-to-link.svg b/2.x/images/footer-go-to-link.svg new file mode 100644 index 0000000000..0137e22313 --- /dev/null +++ b/2.x/images/footer-go-to-link.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/2.x/images/go-to-top-icon.svg b/2.x/images/go-to-top-icon.svg new file mode 100644 index 0000000000..d987f3eadc --- /dev/null +++ b/2.x/images/go-to-top-icon.svg @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/2.x/images/logo-icon.svg b/2.x/images/logo-icon.svg new file mode 100644 index 0000000000..1b3b3670e0 --- /dev/null +++ b/2.x/images/logo-icon.svg @@ -0,0 +1,3 @@ + diff --git a/2.x/images/logo-square.png b/2.x/images/logo-square.png new file mode 100644 index 0000000000..788b301adb Binary files /dev/null and b/2.x/images/logo-square.png differ diff --git a/2.x/navigation.html b/2.x/navigation.html new file mode 100644 index 0000000000..a3e79b8577 --- /dev/null +++ b/2.x/navigation.html @@ -0,0 +1,142 @@ + + diff --git a/2.x/okio/index.html b/2.x/okio/index.html new file mode 100644 index 0000000000..06a4f3caad --- /dev/null +++ b/2.x/okio/index.html @@ -0,0 +1,68 @@ + + + +This timeout uses a background thread to take action exactly when the timeout occurs. Use this to implement timeouts where they aren't supported natively, such as to sockets that are blocked on writing.
Subclasses should override timedOut to take action when a timeout occurs. This method will be invoked by the shared watchdog thread so it should not do any long-running operations. Otherwise we risk starving other timeouts from being triggered.
Use sink and source to apply this timeout to a stream. The returned value will apply the timeout to each operation on the wrapped stream.
Callers should call enter before doing work that is subject to timeouts, and exit afterwards. The return value of exit indicates whether a timeout was triggered. Note that the call to timedOut is asynchronous, and may be called after exit.
Grow the buffer by adding a contiguous range of capacity in a single segment. This adds at least minByteCount bytes but may add up to a full segment of additional capacity.
As a side-effect this cursor will seek. It will move offset to the first byte of newly-added capacity. This is the size of the buffer prior to the expandBuffer()
call.
If minByteCount bytes are available in the buffer's current tail segment that will be used; otherwise another segment will be allocated and appended. In either case this returns the number of bytes of capacity added to this buffer.
Warning: it is the caller’s responsibility to either write new data to every byte of the newly-allocated capacity, or to shrink the buffer to the data written. Failure to do so may cause serious security problems as the data in the returned buffers is not zero filled. Buffers may contain dirty pooled segments that hold very sensitive data from other parts of the current process.
the number of bytes expanded by. Not less than minByteCount
.
the size of the contiguous capacity. Must be positive and not greater than the capacity size of a single segment (8 KiB).
the size of the contiguous capacity. Must be positive and not greater than the capacity size of a single segment (8 KiB).
A handle to the underlying data in a buffer. This handle is unsafe because it does not enforce its own invariants. Instead, it assumes a careful user who has studied Okio's implementation details and their consequences.
Buffer Internals
----------------Most code should use Buffer
as a black box: a class that holds 0 or more bytes of data with efficient APIs to append data to the end and to consume data from the front. Usually this is also the most efficient way to use buffers because it allows Okio to employ several optimizations, including:
Fast Allocation: Buffers use a shared pool of memory that is not zero-filled before use.
Fast Resize: A buffer's capacity can change without copying its contents.
Fast Move: Memory ownership can be reassigned from one buffer to another.
Fast Copy: Multiple buffers can share the same underlying memory.
Fast Encoding and Decoding: Common operations like UTF-8 encoding and decimal decoding do not require intermediate objects to be allocated.
These optimizations all leverage the way Okio stores data internally. Okio Buffers are implemented using a doubly-linked list of segments. Each segment is a contiguous range within a 8 KiB ByteArray
. Each segment has two indexes, start
, the offset of the first byte of the array containing application data, and end
, the offset of the first byte beyond start
whose data is undefined.
New buffers are empty and have no segments:
val buffer = Buffer()
We append 7 bytes of data to the end of our empty buffer. Internally, the buffer allocates a segment and writes its new data there. The lone segment has an 8 KiB byte array but only 7 bytes of data:
buffer.writeUtf8("sealion")
// [ 's', 'e', 'a', 'l', 'i', 'o', 'n', '?', '?', '?', ...]
// ^ ^
// start = 0 end = 7
When we read 4 bytes of data from the buffer, it finds its first segment and returns that data to us. As bytes are read the data is consumed. The segment tracks this by adjusting its internal indices.
buffer.readUtf8(4) // "seal"
// [ 's', 'e', 'a', 'l', 'i', 'o', 'n', '?', '?', '?', ...]
// ^ ^
// start = 4 end = 7
As we write data into a buffer we fill up its internal segments. When a write doesn't fit into a buffer's last segment, additional segments are allocated and appended to the linked list of segments. Each segment has its own start and end indexes tracking where the user's data begins and ends.
val xoxo = new Buffer()
xoxo.writeUtf8("xo".repeat(5_000))
// [ 'x', 'o', 'x', 'o', 'x', 'o', 'x', 'o', ..., 'x', 'o', 'x', 'o']
// ^ ^
// start = 0 end = 8192
//
// [ 'x', 'o', 'x', 'o', ..., 'x', 'o', 'x', 'o', '?', '?', '?', ...]
// ^ ^
// start = 0 end = 1808
The start index is always inclusive and the end index is always exclusive. The data preceding the start index is undefined, and the data at and following the end index is undefined.
After the last byte of a segment has been read, that segment may be returned to an internal segment pool. In addition to reducing the need to do garbage collection, segment pooling also saves the JVM from needing to zero-fill byte arrays. Okio doesn't need to zero-fill its arrays because it always writes memory before it reads it. But if you look at a segment in a debugger you may see its effects. In this example, one of the "xoxo" segments above is reused in an unrelated buffer:
val abc = new Buffer()
abc.writeUtf8("abc")
// [ 'a', 'b', 'c', 'o', 'x', 'o', 'x', 'o', ...]
// ^ ^
// start = 0 end = 3
There is an optimization in Buffer.clone()
and other methods that allows two segments to share the same underlying byte array. Clones can't write to the shared byte array; instead they allocate a new (private) segment early.
val nana = new Buffer()
nana.writeUtf8("na".repeat(2_500))
nana.readUtf8(2) // "na"
// [ 'n', 'a', 'n', 'a', ..., 'n', 'a', 'n', 'a', '?', '?', '?', ...]
// ^ ^
// start = 2 end = 5000
nana2 = nana.clone()
nana2.writeUtf8("batman")
// [ 'n', 'a', 'n', 'a', ..., 'n', 'a', 'n', 'a', '?', '?', '?', ...]
// ^ ^
// start = 2 end = 5000
//
// [ 'b', 'a', 't', 'm', 'a', 'n', '?', '?', '?', ...]
// ^ ^
// start = 0 end = 6
Segments are not shared when the shared region is small (ie. less than 1 KiB). This is intended to prevent fragmentation in sharing-heavy use cases.
Unsafe Cursor API
-----------------This class exposes privileged access to the internal byte arrays of a buffer. A cursor either references the data of a single segment, it is before the first segment (offset == -1
), or it is after the last segment (offset == buffer.size
).
Call UnsafeCursor.seek to move the cursor to the segment that contains a specified offset. After seeking, UnsafeCursor.data references the segment's internal byte array, UnsafeCursor.start is the segment's start and UnsafeCursor.end is its end.
Call UnsafeCursor.next to advance the cursor to the next segment. This returns -1 if there are no further segments in the buffer.
Use Buffer.readUnsafe to create a cursor to read buffer data and Buffer.readAndWriteUnsafe to create a cursor to read and write buffer data. In either case, always call UnsafeCursor.close when done with a cursor. This is convenient with Kotlin's use extension function. In this example we read all of the bytes in a buffer into a byte array:
val bufferBytes = ByteArray(buffer.size.toInt())
buffer.readUnsafe().use { cursor ->
while (cursor.next() != -1) {
System.arraycopy(cursor.data, cursor.start,
bufferBytes, cursor.offset.toInt(), cursor.end - cursor.start);
}
}
Change the capacity of a buffer with resizeBuffer. This is only permitted for read+write cursors. The buffer's size always changes from the end: shrinking it removes bytes from the end; growing it adds capacity to the end.
Warnings
--------Most application developers should avoid this API. Those that must use this API should respect these warnings.
Don't mutate a cursor. This class has public, non-final fields because that is convenient for low-level I/O frameworks. Never assign values to these fields; instead use the cursor API to adjust these.
Never mutate data
unless you have read+write access. You are on the honor system to never write the buffer in read-only mode. Read-only mode may be more efficient than read+write mode because it does not need to make private copies of shared segments.
Only access data in [start..end)
. Other data in the byte array is undefined! It may contain private or sensitive data from other parts of your process.
Always fill the new capacity when you grow a buffer. New capacity is not zero-filled and may contain data from other parts of your process. Avoid leaking this information by always writing something to the newly-allocated capacity. Do not assume that new capacity will be filled with 0
; it will not be.
Do not access a buffer while is being accessed by a cursor. Even simple read-only operations like Buffer.clone are unsafe because they mark segments as shared.
Do not hard-code the segment size in your application. It is possible that segment sizes will change with advances in hardware. Future versions of Okio may even have heterogeneous segment sizes.
These warnings are intended to help you to use this API safely. It's here for developers that need absolutely the most throughput. Since that's you, here's one final performance tip. You can reuse instances of this class if you like. Use the overloads of Buffer.readUnsafe and Buffer.readAndWriteUnsafe that take a cursor and close it after use.
Seeks to the next range of bytes, advancing the offset by end - start
. Returns the size of the readable range (at least 1), or -1 if we have reached the end of the buffer and there are no more bytes to read.
Change the size of the buffer so that it equals newSize by either adding new capacity at the end or truncating the buffer at the end. Newly added capacity may span multiple segments.
As a side-effect this cursor will seek. If the buffer is being enlarged it will move UnsafeCursor.offset to the first byte of newly-added capacity. This is the size of the buffer prior to the resizeBuffer()
call. If the buffer is being shrunk it will move UnsafeCursor.offset to the end of the buffer.
Warning: it is the caller’s responsibility to write new data to every byte of the newly-allocated capacity. Failure to do so may cause serious security problems as the data in the returned buffers is not zero filled. Buffers may contain dirty pooled segments that hold very sensitive data from other parts of the current process.
the previous size of the buffer.
Returns this source's internal buffer.
Returns the number of bytes in segments that are not writable. This is the number of bytes that can be flushed immediately to an underlying sink without harming throughput.
Copy byteCount
bytes from this, starting at offset
, to out
.
Writes complete segments to the underlying sink, if one exists. Like flush, but weaker. Use this to limit the memory held in the buffer to a single segment. Typically application code will not need to call this: it is only necessary when application code writes directly to this sink's buffer.
BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);
b2.buffer().write(new byte[20_000]);
assertEquals(20_000, b2.buffer().size());
assertEquals( 0, b1.buffer().size());
assertEquals( 0, b0.buffer().size());
b2.emitCompleteSegments();
assertEquals( 3_616, b2.buffer().size());
assertEquals( 0, b1.buffer().size());
assertEquals(16_384, b0.buffer().size()); // This example assumes 8192 byte segments.
Writes all buffered data to the underlying sink, if one exists. Like flush, but weaker. Call this before this buffered sink goes out of scope so that its data can reach its destination.
BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);
b2.writeUtf8("hello");
assertEquals(5, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(0, b0.buffer().size());
b2.emit();
assertEquals(0, b2.buffer().size());
assertEquals(5, b1.buffer().size());
assertEquals(0, b0.buffer().size());
b1.emit();
assertEquals(0, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(5, b0.buffer().size());
Returns the 160-bit SHA-1 HMAC of this buffer.
Returns the 256-bit SHA-256 HMAC of this buffer.
Returns the 512-bit SHA-512 HMAC of this buffer.
A collection of bytes in memory.
Moving data from one buffer to another is fast. Instead of copying bytes from one place in memory to another, this class just changes ownership of the underlying byte arrays.
This buffer grows with your data. Just like ArrayList, each buffer starts small. It consumes only the memory it needs to.
This buffer pools its byte arrays. When you allocate a byte array in Java, the runtime must zero-fill the requested array before returning it to you. Even if you're going to write over that space anyway. This class avoids zero-fill and GC churn by pooling byte arrays.
Returns an input stream that reads from this source.
Returns the 128-bit MD5 hash of this buffer.
Returns an output stream that writes to this sink.
Read and exhaust bytes from input
into this.
Read byteCount
bytes from input
into this.
Removes all bytes from this, decodes them as charset
, and returns the string.
Removes byteCount
bytes from this, decodes them as charset
, and returns the string.
Returns the 160-bit SHA-1 hash of this buffer.
Returns the 256-bit SHA-256 hash of this buffer.
Returns the 512-bit SHA-512 hash of this buffer.
Returns an immutable copy of this buffer as a byte string.
Returns an immutable copy of the first byteCount
bytes of this buffer as a byte string.
Writes a long to this sink in signed decimal form (i.e., as a string in base 10).
Buffer buffer = new Buffer();
buffer.writeDecimalLong(8675309L);
buffer.writeByte(' ');
buffer.writeDecimalLong(-123L);
buffer.writeByte(' ');
buffer.writeDecimalLong(1L);
assertEquals("8675309 -123 1", buffer.readUtf8());
Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).
Buffer buffer = new Buffer();
buffer.writeHexadecimalUnsignedLong(65535L);
buffer.writeByte(' ');
buffer.writeHexadecimalUnsignedLong(0xcafebabeL);
buffer.writeByte(' ');
buffer.writeHexadecimalUnsignedLong(0x10L);
assertEquals("ffff cafebabe 10", buffer.readUtf8());
Writes a little-endian int to this sink using four bytes.
Buffer buffer = new Buffer();
buffer.writeIntLe(2147483647);
buffer.writeIntLe(15);
assertEquals(8, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
Writes a big-endian int to this sink using four bytes.
Buffer buffer = new Buffer();
buffer.writeInt(2147483647);
buffer.writeInt(15);
assertEquals(8, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
Writes a little-endian long to this sink using eight bytes.
Buffer buffer = new Buffer();
buffer.writeLongLe(9223372036854775807L);
buffer.writeLongLe(15);
assertEquals(16, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
Writes a big-endian long to this sink using eight bytes.
Buffer buffer = new Buffer();
buffer.writeLong(9223372036854775807L);
buffer.writeLong(15);
assertEquals(16, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
Writes a little-endian short to this sink using two bytes.
Buffer buffer = new Buffer();
buffer.writeShortLe(32767);
buffer.writeShortLe(15);
assertEquals(4, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
Writes a big-endian short to this sink using two bytes.
Buffer buffer = new Buffer();
buffer.writeShort(32767);
buffer.writeShort(15);
assertEquals(4, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
Write byteCount
bytes from this to out
.
Encodes codePoint
in UTF-8 and writes it to this sink.
Encodes string
in UTF-8 and writes it to this sink.
Buffer buffer = new Buffer();
buffer.writeUtf8("Uh uh uh!");
buffer.writeByte(' ');
buffer.writeUtf8("You didn't say the magic word!");
assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());
Encodes the characters at beginIndex
up to endIndex
from string
in UTF-8 and writes it to this sink.
Buffer buffer = new Buffer();
buffer.writeUtf8("I'm a hacker!\n", 6, 12);
buffer.writeByte(' ');
buffer.writeUtf8("That's what I said: you're a nerd.\n", 29, 33);
buffer.writeByte(' ');
buffer.writeUtf8("I prefer to be called a hacker!\n", 24, 31);
assertEquals("hacker nerd hacker!", buffer.readUtf8());
Like OutputStream.write, this writes a complete byte array to this sink.
Like OutputStream.write, this writes byteCount
bytes of source
, starting at offset
.
Writes complete segments to the underlying sink, if one exists. Like flush, but weaker. Use this to limit the memory held in the buffer to a single segment. Typically application code will not need to call this: it is only necessary when application code writes directly to this sink's buffer.
BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);
b2.buffer().write(new byte[20_000]);
assertEquals(20_000, b2.buffer().size());
assertEquals( 0, b1.buffer().size());
assertEquals( 0, b0.buffer().size());
b2.emitCompleteSegments();
assertEquals( 3_616, b2.buffer().size());
assertEquals( 0, b1.buffer().size());
assertEquals(16_384, b0.buffer().size()); // This example assumes 8192 byte segments.
Writes all buffered data to the underlying sink, if one exists. Like flush, but weaker. Call this before this buffered sink goes out of scope so that its data can reach its destination.
BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);
b2.writeUtf8("hello");
assertEquals(5, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(0, b0.buffer().size());
b2.emit();
assertEquals(0, b2.buffer().size());
assertEquals(5, b1.buffer().size());
assertEquals(0, b0.buffer().size());
b1.emit();
assertEquals(0, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(5, b0.buffer().size());
Writes all buffered data to the underlying sink, if one exists. Then that sink is recursively flushed which pushes data as far as possible towards its ultimate destination. Typically that destination is a network socket or file.
BufferedSink b0 = new Buffer();
BufferedSink b1 = Okio.buffer(b0);
BufferedSink b2 = Okio.buffer(b1);
b2.writeUtf8("hello");
assertEquals(5, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(0, b0.buffer().size());
b2.flush();
assertEquals(0, b2.buffer().size());
assertEquals(0, b1.buffer().size());
assertEquals(5, b0.buffer().size());
A sink that keeps a buffer internally so that callers can do small writes without a performance penalty.
Returns an output stream that writes to this sink.
Removes all bytes from source
and appends them to this sink. Returns the number of bytes read which will be 0 if source
is exhausted.
Writes a byte to this sink.
Writes a long to this sink in signed decimal form (i.e., as a string in base 10).
Buffer buffer = new Buffer();
buffer.writeDecimalLong(8675309L);
buffer.writeByte(' ');
buffer.writeDecimalLong(-123L);
buffer.writeByte(' ');
buffer.writeDecimalLong(1L);
assertEquals("8675309 -123 1", buffer.readUtf8());
Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).
Buffer buffer = new Buffer();
buffer.writeHexadecimalUnsignedLong(65535L);
buffer.writeByte(' ');
buffer.writeHexadecimalUnsignedLong(0xcafebabeL);
buffer.writeByte(' ');
buffer.writeHexadecimalUnsignedLong(0x10L);
assertEquals("ffff cafebabe 10", buffer.readUtf8());
Writes a little-endian int to this sink using four bytes.
Buffer buffer = new Buffer();
buffer.writeIntLe(2147483647);
buffer.writeIntLe(15);
assertEquals(8, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
Writes a big-endian int to this sink using four bytes.
Buffer buffer = new Buffer();
buffer.writeInt(2147483647);
buffer.writeInt(15);
assertEquals(8, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
Writes a little-endian long to this sink using eight bytes.
Buffer buffer = new Buffer();
buffer.writeLongLe(9223372036854775807L);
buffer.writeLongLe(15);
assertEquals(16, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
Writes a big-endian long to this sink using eight bytes.
Buffer buffer = new Buffer();
buffer.writeLong(9223372036854775807L);
buffer.writeLong(15);
assertEquals(16, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
Writes a little-endian short to this sink using two bytes.
Buffer buffer = new Buffer();
buffer.writeShortLe(32767);
buffer.writeShortLe(15);
assertEquals(4, buffer.size());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals(0, buffer.size());
Writes a big-endian short to this sink using two bytes.
Buffer buffer = new Buffer();
buffer.writeShort(32767);
buffer.writeShort(15);
assertEquals(4, buffer.size());
assertEquals((byte) 0x7f, buffer.readByte());
assertEquals((byte) 0xff, buffer.readByte());
assertEquals((byte) 0x00, buffer.readByte());
assertEquals((byte) 0x0f, buffer.readByte());
assertEquals(0, buffer.size());
Encodes codePoint
in UTF-8 and writes it to this sink.
Encodes string
in UTF-8 and writes it to this sink.
Buffer buffer = new Buffer();
buffer.writeUtf8("Uh uh uh!");
buffer.writeByte(' ');
buffer.writeUtf8("You didn't say the magic word!");
assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());
Encodes the characters at beginIndex
up to endIndex
from string
in UTF-8 and writes it to this sink.
Buffer buffer = new Buffer();
buffer.writeUtf8("I'm a hacker!\n", 6, 12);
buffer.writeByte(' ');
buffer.writeUtf8("That's what I said: you're a nerd.\n", 29, 33);
buffer.writeByte(' ');
buffer.writeUtf8("I prefer to be called a hacker!\n", 24, 31);
assertEquals("hacker nerd hacker!", buffer.readUtf8());
Like OutputStream.write, this writes a complete byte array to this sink.
Like OutputStream.write, this writes byteCount
bytes of source
, starting at offset
.
Removes byteCount
bytes from source
and appends them to this sink.
Returns true if there are no more bytes in this source. This will block until there are bytes to read or the source is definitely exhausted.
Equivalent to indexOfElement(targetBytes, 0).
Returns the first index in this buffer that is at or after fromIndex
and that contains any of the bytes in targetBytes
. This expands the buffer as necessary until a target byte is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is found.
ByteString ANY_VOWEL = ByteString.encodeUtf8("AEOIUaeoiu");
Buffer buffer = new Buffer();
buffer.writeUtf8("Dr. Alan Grant");
assertEquals(4, buffer.indexOfElement(ANY_VOWEL)); // 'A' in 'Alan'.
assertEquals(11, buffer.indexOfElement(ANY_VOWEL, 9)); // 'a' in 'Grant'.
Equivalent to indexOf(b, 0).
Returns the index of the first b
in the buffer at or after fromIndex
. This expands the buffer as necessary until b
is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested byte is found.
Buffer buffer = new Buffer();
buffer.writeUtf8("Don't move! He can't see us if we don't move.");
byte m = 'm';
assertEquals(6, buffer.indexOf(m));
assertEquals(40, buffer.indexOf(m, 12));
Returns the index of b
if it is found in the range of fromIndex
inclusive to toIndex
exclusive. If b
isn't found, or if fromIndex == toIndex
, then -1 is returned.
The scan terminates at either toIndex
or the end of the buffer, whichever comes first. The maximum number of bytes scanned is toIndex-fromIndex
.
Equivalent to indexOf(bytes, 0).
Returns the index of the first match for bytes
in the buffer at or after fromIndex
. This expands the buffer as necessary until bytes
is found. This reads an unbounded number of bytes into the buffer. Returns -1 if the stream is exhausted before the requested bytes are found.
ByteString MOVE = ByteString.encodeUtf8("move");
Buffer buffer = new Buffer();
buffer.writeUtf8("Don't move! He can't see us if we don't move.");
assertEquals(6, buffer.indexOf(MOVE));
assertEquals(40, buffer.indexOf(MOVE, 12));
A source that keeps a buffer internally so that callers can do small reads without a performance penalty. It also allows clients to read ahead, buffering as much as necessary before consuming input.
Returns an input stream that reads from this source.
Returns a new BufferedSource
that can read data from this BufferedSource
without consuming it. The returned source becomes invalid once this source is next read or closed.
For example, we can use peek()
to lookahead and read the same data multiple times.
val buffer = Buffer()
buffer.writeUtf8("abcdefghi")
buffer.readUtf8(3) // returns "abc", buffer contains "defghi"
val peek = buffer.peek()
peek.readUtf8(3) // returns "def", buffer contains "defghi"
peek.readUtf8(3) // returns "ghi", buffer contains "defghi"
buffer.readUtf8(3) // returns "def", buffer contains "ghi"
Returns true if the bytes at offset
in this source equal bytes
. This expands the buffer as necessary until a byte does not match, all bytes are matched, or if the stream is exhausted before enough bytes could determine a match.
ByteString simonSays = ByteString.encodeUtf8("Simon says:");
Buffer standOnOneLeg = new Buffer().writeUtf8("Simon says: Stand on one leg.");
assertTrue(standOnOneLeg.rangeEquals(0, simonSays));
Buffer payMeMoney = new Buffer().writeUtf8("Pay me $1,000,000.");
assertFalse(payMeMoney.rangeEquals(0, simonSays));
Returns true if byteCount
bytes at offset
in this source equal bytes
at bytesOffset
. This expands the buffer as necessary until a byte does not match, all bytes are matched, or if the stream is exhausted before enough bytes could determine a match.
Removes all bytes from this and appends them to sink
. Returns the total number of bytes written to sink
which will be 0 if this is exhausted.
Removes all bytes from this and returns them as a byte array.
Removes byteCount
bytes from this and returns them as a byte array.
Removes all bytes from this and returns them as a byte string.
Removes byteCount
bytes from this and returns them as a byte string.
Reads a long from this source in signed decimal form (i.e., as a string in base 10 with optional leading '-'). This will iterate until a non-digit character is found.
Buffer buffer = new Buffer()
.writeUtf8("8675309 -123 00001");
assertEquals(8675309L, buffer.readDecimalLong());
assertEquals(' ', buffer.readByte());
assertEquals(-123L, buffer.readDecimalLong());
assertEquals(' ', buffer.readByte());
assertEquals(1L, buffer.readDecimalLong());
if the found digits do not fit into a long
or a decimal number was not present.
Removes exactly sink.length
bytes from this and copies them into sink
. Throws an java.io.EOFException if the requested number of bytes cannot be read.
Reads a long form this source in hexadecimal form (i.e., as a string in base 16). This will iterate until a non-hexadecimal character is found.
Buffer buffer = new Buffer()
.writeUtf8("ffff CAFEBABE 10");
assertEquals(65535L, buffer.readHexadecimalUnsignedLong());
assertEquals(' ', buffer.readByte());
assertEquals(0xcafebabeL, buffer.readHexadecimalUnsignedLong());
assertEquals(' ', buffer.readByte());
assertEquals(0x10L, buffer.readHexadecimalUnsignedLong());
if the found hexadecimal does not fit into a long
or hexadecimal was not found.
Removes four bytes from this source and returns a little-endian int.
Buffer buffer = new Buffer()
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x7f)
.writeByte(0x0f)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00);
assertEquals(8, buffer.size());
assertEquals(2147483647, buffer.readIntLe());
assertEquals(4, buffer.size());
assertEquals(15, buffer.readIntLe());
assertEquals(0, buffer.size());
Removes four bytes from this source and returns a big-endian int.
Buffer buffer = new Buffer()
.writeByte(0x7f)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x0f);
assertEquals(8, buffer.size());
assertEquals(2147483647, buffer.readInt());
assertEquals(4, buffer.size());
assertEquals(15, buffer.readInt());
assertEquals(0, buffer.size());
Removes eight bytes from this source and returns a little-endian long.
Buffer buffer = new Buffer()
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x7f)
.writeByte(0x0f)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00);
assertEquals(16, buffer.size());
assertEquals(9223372036854775807L, buffer.readLongLe());
assertEquals(8, buffer.size());
assertEquals(15, buffer.readLongLe());
assertEquals(0, buffer.size());
Removes eight bytes from this source and returns a big-endian long.
Buffer buffer = new Buffer()
.writeByte(0x7f)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0xff)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x00)
.writeByte(0x0f);
assertEquals(16, buffer.size());
assertEquals(9223372036854775807L, buffer.readLong());
assertEquals(8, buffer.size());
assertEquals(15, buffer.readLong());
assertEquals(0, buffer.size());
Removes two bytes from this source and returns a little-endian short.
Buffer buffer = new Buffer()
.writeByte(0xff)
.writeByte(0x7f)
.writeByte(0x0f)
.writeByte(0x00);
assertEquals(4, buffer.size());
assertEquals(32767, buffer.readShortLe());
assertEquals(2, buffer.size());
assertEquals(15, buffer.readShortLe());
assertEquals(0, buffer.size());
Removes two bytes from this source and returns a big-endian short.
Buffer buffer = new Buffer()
.writeByte(0x7f)
.writeByte(0xff)
.writeByte(0x00)
.writeByte(0x0f);
assertEquals(4, buffer.size());
assertEquals(32767, buffer.readShort());
assertEquals(2, buffer.size());
assertEquals(15, buffer.readShort());
assertEquals(0, buffer.size());
Removes all bytes from this, decodes them as charset
, and returns the string.
Removes byteCount
bytes from this, decodes them as charset
, and returns the string.
Removes and returns a single UTF-8 code point, reading between 1 and 4 bytes as necessary.
If this source is exhausted before a complete code point can be read, this throws an java.io.EOFException and consumes no input.
If this source doesn't start with a properly-encoded UTF-8 code point, this method will remove 1 or more non-UTF-8 bytes and return the replacement character (U+FFFD
). This covers encoding problems (the input is not properly-encoded UTF-8), characters out of range (beyond the 0x10ffff limit of Unicode), code points for UTF-16 surrogates (U+d800..U+dfff) and overlong encodings (such as 0xc080
for the NUL character in modified UTF-8).
Removes and returns characters up to but not including the next line break. A line break is either "\n"
or "\r\n"
; these characters are not included in the result.
On the end of the stream this method throws. Every call must consume either '\r\n' or '\n'. If these characters are absent in the stream, an java.io.EOFException is thrown. Use this for machine-generated data where a missing line break implies truncated input.
Like readUtf8LineStrict, except this allows the caller to specify the longest allowed match. Use this to protect against streams that may not include "\n"
or "\r\n"
.
The returned string will have at most limit
UTF-8 bytes, and the maximum number of bytes scanned is limit + 2
. If limit == 0
this will always throw an EOFException
because no bytes will be scanned.
This method is safe. No bytes are discarded if the match fails, and the caller is free to try another match:
Buffer buffer = new Buffer();
buffer.writeUtf8("12345\r\n");
// This will throw! There must be \r\n or \n at the limit or before it.
buffer.readUtf8LineStrict(4);
// No bytes have been consumed so the caller can retry.
assertEquals("12345", buffer.readUtf8LineStrict(5));
Removes and returns characters up to but not including the next line break. A line break is either "\n"
or "\r\n"
; these characters are not included in the result.
Buffer buffer = new Buffer()
.writeUtf8("I'm a hacker!\n")
.writeUtf8("That's what I said: you're a nerd.\n")
.writeUtf8("I prefer to be called a hacker!\n");
assertEquals(81, buffer.size());
assertEquals("I'm a hacker!", buffer.readUtf8Line());
assertEquals(67, buffer.size());
assertEquals("That's what I said: you're a nerd.", buffer.readUtf8Line());
assertEquals(32, buffer.size());
assertEquals("I prefer to be called a hacker!", buffer.readUtf8Line());
assertEquals(0, buffer.size());
assertEquals(null, buffer.readUtf8Line());
assertEquals(0, buffer.size());
On the end of the stream this method returns null, just like java.io.BufferedReader. If the source doesn't end with a line break then an implicit line break is assumed. Null is returned once the source is exhausted. Use this for human-generated data, where a trailing line break is optional.
Removes all bytes from this, decodes them as UTF-8, and returns the string. Returns the empty string if this source is empty.
Buffer buffer = new Buffer()
.writeUtf8("Uh uh uh!")
.writeByte(' ')
.writeUtf8("You didn't say the magic word!");
assertEquals("Uh uh uh! You didn't say the magic word!", buffer.readUtf8());
assertEquals(0, buffer.size());
assertEquals("", buffer.readUtf8());
assertEquals(0, buffer.size());
Removes byteCount
bytes from this, decodes them as UTF-8, and returns the string.
Buffer buffer = new Buffer()
.writeUtf8("Uh uh uh!")
.writeByte(' ')
.writeUtf8("You didn't say the magic word!");
assertEquals(40, buffer.size());
assertEquals("Uh uh uh! You ", buffer.readUtf8(14));
assertEquals(26, buffer.size());
assertEquals("didn't say the", buffer.readUtf8(14));
assertEquals(12, buffer.size());
assertEquals(" magic word!", buffer.readUtf8(12));
assertEquals(0, buffer.size());
Removes up to sink.length
bytes from this and copies them into sink
. Returns the number of bytes read, or -1 if this source is exhausted.
Returns true when the buffer contains at least byteCount
bytes, expanding it as necessary. Returns false if the source is exhausted before the requested bytes can be read.
Returns when the buffer contains at least byteCount
bytes. Throws an java.io.EOFException if the source is exhausted before the required bytes can be read.
Finds the first string in options
that is a prefix of this buffer, consumes it from this buffer, and returns its index. If no byte string in options
is a prefix of this buffer this returns -1 and no bytes are consumed.
This can be used as an alternative to readByteString or even readUtf8 if the set of expected values is known in advance.
Options FIELDS = Options.of(
ByteString.encodeUtf8("depth="),
ByteString.encodeUtf8("height="),
ByteString.encodeUtf8("width="));
Buffer buffer = new Buffer()
.writeUtf8("width=640\n")
.writeUtf8("height=480\n");
assertEquals(2, buffer.select(FIELDS));
assertEquals(640, buffer.readDecimalLong());
assertEquals('\n', buffer.readByte());
assertEquals(1, buffer.select(FIELDS));
assertEquals(480, buffer.readDecimalLong());
assertEquals('\n', buffer.readByte());
Reads and discards byteCount
bytes from this source. Throws an java.io.EOFException if the source is exhausted before the requested bytes can be skipped.
A singleton empty ByteString
.
Decodes the Base64-encoded bytes and returns their value as a byte string. Returns null if this is not a Base64-encoded sequence of bytes.
Decodes the hex-encoded bytes and returns their value a byte string.
Returns a new byte string containing the UTF-8
bytes of this String.
Returns a new ByteString containing the charset
-encoded bytes of this String.
Returns a new byte string containing a clone of the bytes of data
.
Reads count
bytes from this InputStream and returns the result.
if in
has fewer than count
bytes to read.
Returns a ByteString containing a copy of this ByteBuffer.
Returns a new ByteString containing a copy of byteCount
bytes of this ByteArray starting at offset
.
Returns a ByteBuffer
view of the bytes in this ByteString
.
Returns this byte string encoded as URL-safe Base64.
Returns the 160-bit SHA-1 HMAC of this byte string.
Returns the 256-bit SHA-256 HMAC of this byte string.
Returns the 512-bit SHA-512 HMAC of this byte string.
An immutable sequence of bytes.
Byte strings compare lexicographically as a sequence of unsigned bytes. That is, the byte string ff
sorts after 00
. This is counter to the sort order of the corresponding bytes, where -1
sorts before 0
.
Full disclosure: this class provides untrusted input and output streams with raw access to the underlying byte array. A hostile stream implementation could keep a reference to the mutable byte string, violating the immutable guarantee of this class. For this reason a byte string's immutability guarantee cannot be relied upon for security in applets and other environments that run both trusted and untrusted code in the same process.
Returns the 128-bit MD5 hash of this byte string.
Returns true if the bytes of this in [offset..offset+byteCount)
equal the bytes of other
in [otherOffset..otherOffset+byteCount)
. Returns false if either range is out of bounds.
Returns the 160-bit SHA-1 hash of this byte string.
Returns the 256-bit SHA-256 hash of this byte string.
Returns the 512-bit SHA-512 hash of this byte string.
Returns a byte string that is a substring of this byte string, beginning at the specified beginIndex
and ends at the specified endIndex
. Returns this byte string if beginIndex
is 0 and endIndex
is the length of this byte string.
Returns a byte string equal to this byte string, but with the bytes 'A' through 'Z' replaced with the corresponding byte in 'a' through 'z'. Returns this byte string if it contains no bytes in 'A' through 'Z'.
Returns a byte string equal to this byte string, but with the bytes 'a' through 'z' replaced with the corresponding byte in 'A' through 'Z'. Returns this byte string if it contains no bytes in 'a' through 'z'.
Returns a byte array containing a copy of the bytes in this ByteString
.
Returns a human-readable string that describes the contents of this byte string. Typically this is a string like [text=Hello]
or [hex=0000ffff]
.
Writes the contents of this byte string to out
.
Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.
Closes this object and releases the resources it holds. It is an error to use an object after it has been closed. It is safe to close an object more than once.
A sink that uses DEFLATE to compress data written to another source.
Aggressive flushing of this stream may result in reduced compression. Each call to flush immediately compresses all currently-buffered data; this early compression may be less effective than compression performed without flushing.
This is equivalent to using Deflater with the sync flush option. This class does not offer any partial flush mechanism. For best performance, only call flush when application behavior requires it.
A Sink which forwards calls to another. Useful for subclassing.
Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.
A Source which forwards calls to another. Useful for subclassing.
Clears the deadline.
Clears the timeout. Operating system timeouts may still apply.
Sets the nano time when the deadline will be reached. All operations must complete before this time. Use a deadline to set a maximum bound on the time spent on a sequence of operations.
Returns true if a deadline is enabled.
A Timeout which forwards calls to another. Useful for subclassing.
Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted. This method doesn't detect timeouts; that should be implemented to asynchronously abort an in-progress operation.
Returns the timeout in nanoseconds, or 0
for no timeout.
Wait at most timeout
time before aborting an operation. Using a per-operation timeout means that as long as forward progress is being made, no sequence of operations will fail.
If timeout == 0
, operations will run indefinitely. (Operating system timeouts may still apply.)
A sink that uses GZIP to compress written data to another sink.
Aggressive flushing of this stream may result in reduced compression. Each call to flush immediately compresses all currently-buffered data; this early compression may be less effective than compression performed without flushing.
This is equivalent to using Deflater with the sync flush option. This class does not offer any partial flush mechanism. For best performance, only call flush when application behavior requires it.
Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.
A source that uses GZIP to decompress data read from another source.
Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.
Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.
Returns the hash of the bytes accepted thus far and resets the internal state of this sink.
Warning: This method is not idempotent. Each time this method is called its internal state is cleared. This starts a new hash with zero bytes accepted.
A sink that computes a hash of the full stream of bytes it has accepted. To use, create an instance with your preferred hash algorithm. Write all of the data to the sink and then call hash to compute the final hash value.
In this example we use HashingSink
with a BufferedSink to make writing to the sink easier.
HashingSink hashingSink = HashingSink.sha256(s);
BufferedSink bufferedSink = Okio.buffer(hashingSink);
... // Write to bufferedSink and either flush or close it.
ByteString hash = hashingSink.hash();
A sink that computes a hash of the full stream of bytes it has accepted. To use, create an instance with your preferred hash algorithm. Write all of the data to the sink and then call hash to compute the final hash value.
In this example we use HashingSink
with a BufferedSink to make writing to the sink easier.
HashingSink hashingSink = HashingSink.sha256(s);
BufferedSink bufferedSink = Okio.buffer(hashingSink);
... // Write to bufferedSink and either flush or close it.
ByteString hash = hashingSink.hash();
Returns a source that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
Returns a source that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
Returns a source that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.
Returns a source that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
Returns a source that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
Returns a source that uses the SHA-256 hash algorithm to produce 256-bit hashes.
Returns a source that uses the SHA-512 hash algorithm to produce 512-bit hashes.
Returns the hash of the bytes supplied thus far and resets the internal state of this source.
Warning: This method is not idempotent. Each time this method is called its internal state is cleared. This starts a new hash with zero bytes supplied.
A source that computes a hash of the full stream of bytes it has supplied. To use, create an instance with your preferred hash algorithm. Exhaust the source by reading all of its bytes and then call hash to compute the final hash value.
In this example we use HashingSource
with a BufferedSource to make reading from the source easier.
HashingSource hashingSource = HashingSource.sha256(rawSource);
BufferedSource bufferedSource = Okio.buffer(hashingSource);
... // Read all of bufferedSource.
ByteString hash = hashingSource.hash();
A source that computes a hash of the full stream of bytes it has supplied. To use, create an instance with your preferred hash algorithm. Exhaust the source by reading all of its bytes and then call hash to compute the final hash value.
In this example we use HashingSource
with a BufferedSource to make reading from the source easier.
HashingSource hashingSource = HashingSource.sha256(rawSource);
BufferedSource bufferedSource = Okio.buffer(hashingSource);
... // Read all of bufferedSource.
ByteString hash = hashingSource.hash();
Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.
A source that uses DEFLATE to decompress data read from another source.
Consume deflated bytes from the underlying source, and write any inflated bytes to sink. Returns the number of inflated bytes written to sink. This may return 0L, though it will always consume 1 or more bytes from the underlying source if it is not exhausted.
Use this instead of read when it is useful to consume the deflated stream even when doing so doesn't yield inflated bytes.
An indexed set of values that may be read with BufferedSource.select.
Fail any in-flight and future operations. After canceling:
Any attempt to write or flush sink will fail immediately with an IOException.
Any attempt to read source will fail immediately with an IOException.
Any attempt to fold will fail immediately with an IOException.
Closing the source and the sink will complete normally even after a pipe has been canceled. If this sink has been folded, closing it will close the folded sink. This operation may block.
This operation may be called by any thread at any time. It is safe to call concurrently while operating on the source or the sink.
Writes any buffered contents of this pipe to sink
, then replace this pipe's source with sink
. This pipe's source is closed and attempts to read it will throw an IllegalStateException.
This method must not be called while concurrently accessing this pipe's source. It is safe, however, to call this while concurrently writing this pipe's sink.
A source and a sink that are attached. The sink's output is the source's input. Typically each is accessed by its own thread: a producer thread writes data to the sink and a consumer thread reads data from the source.
This class uses a buffer to decouple source and sink. This buffer has a user-specified maximum size. When a producer thread outruns its consumer the buffer fills up and eventually writes to the sink will block until the consumer has caught up. Symmetrically, if a consumer outruns its producer reads block until there is data to be read. Limits on the amount of time spent waiting for the other party can be configured with timeouts on the source and the sink.
When the sink is closed, source reads will continue to complete normally until the buffer has been exhausted. At that point reads will return -1, indicating the end of the stream. But if the source is closed first, writes to the sink will immediately fail with an IOException.
A pipe may be canceled to immediately fail writes to the sink and reads from the source.
Pushes all buffered bytes to their final destination and releases the resources held by this sink. It is an error to write a closed sink. It is safe to close a sink more than once.
Receives a stream of bytes. Use this interface to write data wherever it's needed: to the network, storage, or a buffer in memory. Sinks may be layered to transform received data, such as to compress, encrypt, throttle, or add protocol framing.
Most application code shouldn't operate on a sink directly, but rather on a BufferedSink which is both more efficient and more convenient. Use buffer to wrap any sink with a buffer.
Sinks are easy to test: just use a Buffer in your tests, and read from it to confirm it received the data that was expected.
This interface is functionally equivalent to java.io.OutputStream.
OutputStream
requires multiple layers when emitted data is heterogeneous: a DataOutputStream
for primitive values, a BufferedOutputStream
for buffering, and OutputStreamWriter
for charset encoding. This library uses BufferedSink
for all of the above.
Sink is also easier to layer: there is no java.io.OutputStream.write method that is awkward to implement efficiently.
Use sink to adapt an OutputStream
to a sink. Use BufferedSink.outputStream to adapt a sink to an OutputStream
.
Closes this source and releases the resources held by this source. It is an error to read a closed source. It is safe to close a source more than once.
Supplies a stream of bytes. Use this interface to read data from wherever it's located: from the network, storage, or a buffer in memory. Sources may be layered to transform supplied data, such as to decompress, decrypt, or remove protocol framing.
Most applications shouldn't operate on a source directly, but rather on a BufferedSource which is both more efficient and more convenient. Use buffer to wrap any source with a buffer.
Sources are easy to test: just use a Buffer in your tests, and fill it with the data your application is to read.
This interface is functionally equivalent to java.io.InputStream.
InputStream
requires multiple layers when consumed data is heterogeneous: a DataInputStream
for primitive values, a BufferedInputStream
for buffering, and InputStreamReader
for strings. This library uses BufferedSource
for all of the above.
Source avoids the impossible-to-implement java.io.InputStream.available method. Instead callers specify how many bytes they require.
Source omits the unsafe-to-compose java.io.InputStream.mark state that's tracked by InputStream
; instead, callers just buffer what they need.
When implementing a source, you don't need to worry about the java.io.InputStream.read method that is awkward to implement efficiently and returns one of 257 possible values.
And source has a stronger skip
method: BufferedSource.skip won't return prematurely.
Use source to adapt an InputStream
to a source. Use BufferedSource.inputStream to adapt a source to an InputStream
.
Sets the rate at which bytes will be allocated. Use 0 for no limit.
Enables limiting of Source and Sink throughput. Attach to this throttler via source and sink and set the desired throughput via bytesPerSecond. Multiple Sources and Sinks can be attached to a single Throttler and they will be throttled as a group, where their combined throughput will not exceed the desired throughput. The same Source or Sink can be attached to multiple Throttlers and its throughput will not exceed the desired throughput of any of the Throttlers.
This class has these tuning parameters:
bytesPerSecond
: Maximum sustained throughput. Use 0 for no limit.
waitByteCount
: When the requested byte count is greater than this many bytes and isn't immediately available, only wait until we can allocate at least this many bytes. Use this to set the ideal byte count during sustained throughput.
maxByteCount
: Maximum number of bytes to allocate on any call. This is also the number of bytes that will be returned before any waiting.
Clears the deadline.
Clears the timeout. Operating system timeouts may still apply.
Sets the nano time when the deadline will be reached. All operations must complete before this time. Use a deadline to set a maximum bound on the time spent on a sequence of operations.
Returns true if a deadline is enabled.
A policy on how much time to spend on a task before giving up. When a task times out, it is left in an unspecified state and should be abandoned. For example, if reading from a source times out, that source should be closed and the read should be retried later. If writing to a sink times out, the same rules apply: close the sink and retry later.
This class offers two complementary controls to define a timeout policy.
Timeouts specify the maximum time to wait for a single operation to complete. Timeouts are typically used to detect problems like network partitions. For example, if a remote peer doesn't return any data for ten seconds, we may assume that the peer is unavailable.
Deadlines specify the maximum time to spend on a job, composed of one or more operations. Use deadlines to set an upper bound on the time invested on a job. For example, a battery-conscious app may limit how much time it spends pre-loading content.
Applies the minimum intersection between this timeout and other
, run block
, then finally rollback this timeout's values.
Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted. This method doesn't detect timeouts; that should be implemented to asynchronously abort an in-progress operation.
Returns the timeout in nanoseconds, or 0
for no timeout.
Wait at most timeout
time before aborting an operation. Using a per-operation timeout means that as long as forward progress is being made, no sequence of operations will fail.
If timeout == 0
, operations will run indefinitely. (Operating system timeouts may still apply.)
Waits on monitor
until it is notified. Throws InterruptedIOException if either the thread is interrupted or if this timeout elapses before monitor
is notified. The caller must be synchronized on monitor
.
Here's a sample class that uses waitUntilNotified()
to await a specific state. Note that the call is made within a loop to avoid unnecessary waiting and to mitigate spurious notifications.
class Dice {
Random random = new Random();
int latestTotal;
public synchronized void roll() {
latestTotal = 2 + random.nextInt(6) + random.nextInt(6);
System.out.println("Rolled " + latestTotal);
notifyAll();
}
public void rollAtFixedRate(int period, TimeUnit timeUnit) {
Executors.newScheduledThreadPool(0).scheduleAtFixedRate(new Runnable() {
public void run() {
roll();
}
}, 0, period, timeUnit);
}
public synchronized void awaitTotal(Timeout timeout, int total)
throws InterruptedIOException {
while (latestTotal != total) {
timeout.waitUntilNotified(this);
}
}
}
Returns a sink that writes to file
.
Returns a sink that writes nowhere.
Returns a new source that buffers reads from source
. The returned source will perform bulk reads into its in-memory buffer. Use this wherever you read a source to get an ergonomic and efficient access to data.
Returns a new sink that buffers writes to sink
. The returned sink will batch writes to sink
. Use this wherever you write to a sink to get an ergonomic and efficient access to data.
Returns a sink that uses cipher to encrypt or decrypt this.
if cipher isn't a block cipher.
Returns a source that uses cipher to encrypt or decrypt this.
if cipher isn't a block cipher.
Returns a sink that uses mac to hash this.
Returns a sink that uses digest to hash this.
Returns a source that uses mac to hash this.
Returns a source that uses digest to hash this.
string
as UTF-8 when using BufferedSink.writeUtf8.Returns an InflaterSource that DEFLATE-decompresses this Source while reading.
Returns a sink that writes to out
.
Returns a sink that writes to socket
. Prefer this over sink because this method honors timeouts. When the socket write times out, the socket is asynchronously closed by a watchdog thread.
Returns a sink that writes to file
.
Returns a source that reads from path
.
Returns a source that reads from in
.
Returns a source that reads from socket
. Prefer this over source because this method honors timeouts. When the socket read times out, the socket is asynchronously closed by a watchdog thread.
Returns a sink that writes to path
.
Returns the number of bytes used to encode the slice of string
as UTF-8 when using BufferedSink.writeUtf8.