This repository has been archived by the owner on May 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to airline release and guava 18.0
- Loading branch information
Showing
21 changed files
with
94 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
airship-config-bundler/src/main/java/io/airlift/airship/configbundler/ZipGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
airship-config-bundler/src/main/java/io/airlift/airship/configbundler/ZipPackager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
...oordinator/src/main/java/io/airlift/airship/coordinator/InputSupplierStreamingOutput.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,26 @@ | ||
package io.airlift.airship.coordinator; | ||
|
||
import com.google.common.io.ByteStreams; | ||
import com.google.common.io.InputSupplier; | ||
import com.google.common.io.ByteSource; | ||
|
||
import javax.ws.rs.WebApplicationException; | ||
import javax.ws.rs.core.StreamingOutput; | ||
|
||
import java.io.IOException; | ||
import java.io.InputStream; | ||
import java.io.OutputStream; | ||
|
||
class InputSupplierStreamingOutput | ||
implements StreamingOutput | ||
{ | ||
private final InputSupplier<? extends InputStream> inputSupplier; | ||
private final ByteSource byteSource; | ||
|
||
public InputSupplierStreamingOutput(InputSupplier<? extends InputStream> inputSupplier) | ||
public InputSupplierStreamingOutput(ByteSource byteSource) | ||
{ | ||
this.inputSupplier = inputSupplier; | ||
this.byteSource = byteSource; | ||
} | ||
|
||
public void write(OutputStream output) | ||
throws IOException, WebApplicationException | ||
{ | ||
ByteStreams.copy(inputSupplier, output); | ||
byteSource.copyTo(output); | ||
} | ||
} |
Oops, something went wrong.