Code examples for InputStream

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
41:	return IOUtils.toString(s); 
-
43:	s.close(); 
Full Snippet Info
9
CodeRank
170:	isToUse.mark(1); 
-
173:	int code = isToUse.read(); 
-
182:	major = isToUse.read(); 
183:	minor = isToUse.read(); 
-
187:	in = new Hessian2Input(isToUse); 
-
193:	isToUse.reset(); 
194:	in = new Hessian2Input(isToUse); 
-
200:	major = isToUse.read(); 
201:	minor = isToUse.read(); 
202:	in = new HessianInput(isToUse); 
-
228:	isToUse.close(); 
Full Snippet Info
8
CodeRank
64:	is.close(); 
Full Snippet Info
8
CodeRank
183:	* @param entityStream the output stream to marshal to. 
184:	* @throws javax.xml.bind.JAXBException 
185:	*/ 
186:	protected void writeTo(Object t, MediaType mediaType, Charset c, 
-
190:	} 
Full Snippet Info
8
CodeRank
93:	input = codec.createInputStream(input, decompressor); 
-
97:	IOUtils.readFully(input, memory, 0, memory.length); 
-
110:	if (input.read() >= 0 ) { 
-
117:	IOUtils.cleanup(LOG, input); 
Full Snippet Info
8
CodeRank
85:	InputStream markSupportingStream = encodedStream.markSupported() ? encodedStream : 
-
88:	markSupportingStream.mark(1); 
-
90:	int firstByte = markSupportingStream.read(); 
91:	markSupportingStream.reset(); 
Full Snippet Info
8
CodeRank
51:	IOUtils.close(currentStream); 
-
92:	final int read = stream.read(buffer, offset, length); 
Full Snippet Info
8
CodeRank
141:	input.mark(10000); 
-
143:	int result = input.read(); 
-
151:	input.reset(); 
-
154:	int markerReadResult = 
-
157:	input.reset(); 
-
161:	return input.read(); 
Full Snippet Info
8
CodeRank
30:	byte[] inflated = IOUtils.toByteArray(is); 
31:	is.close(); 
Full Snippet Info
8
CodeRank
183:	if (input.markSupported()) { 
184:	input.mark(1); 
185:	int i = input.read(); 
186:	input.reset(); 
-
197:	int b = input.read(); 
Full Snippet Info
8
CodeRank
72:	in.close(); 
Full Snippet Info
8
CodeRank
100:	XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(is); 
-
105:	is.close(); 
Full Snippet Info
8
CodeRank
78:	this.skeleton.invoke(new BurlapInput(inputStream), new BurlapOutput(outputStream)); 
-
82:	inputStream.close(); 
Full Snippet Info
7
CodeRank
106:	Assert.notNull(in, "No InputStream specified"); 
-
109:	return StreamUtils.copy(in, out); 
-
113:	in.close(); 
Full Snippet Info
7
CodeRank
91:	XMLStreamReader xmlReader = inputFactory.createXMLStreamReader(is); 
-
96:	is.close(); 
Full Snippet Info
8
CodeRank
108:	return ConfigurationFactory.parseConfiguration(is); 
-
116:	is.close(); 
Full Snippet Info
7
CodeRank
64:	is.close(); 
Full Snippet Info
7
CodeRank
138:	LogManager.getLogManager().readConfiguration(is); 
-
141:	is.close(); 
Full Snippet Info
8
CodeRank
92:	StreamUtils.copy(in, outputMessage.getBody()); 
-
96:	in.close(); 
Full Snippet Info
7
CodeRank
159:	ProjectManager.singleton.importProject(projectID, inputStream, !urlString.endsWith(".tar")); 
-
161:	inputStream.close(); 
Full Snippet Info
8
CodeRank