Code example for PipedInputStream

0
	public InputStream getProjectContentAsStream() {
		PipedOutputStream pos = new PipedOutputStream();
		PipedInputStream result;
 
		try { 
			result = new PipedInputStream(pos);
		} catch (IOException e) {
			throw new RuntimeException(e);
		} 
		final ZipOutputStream zos = new ZipOutputStream(pos);
 
		new Thread("Text Fixture ZIP Stream Copier") {
			@Override 
			public void run() { 
				try { 
					List<String> fixtureFilePaths = FixtureFilesLocator
							.getFixtureFilePaths(); 
					if (fixtureFilePaths != null) {
						for (String fixtureFilePath : fixtureFilePaths) {
							InputStream inputStream = FixtureFilesLocator
Experience pair programming with AI  Get Codota for Java