Home
last modified time | relevance | path

Searched refs:instream (Results 1 – 25 of 27) sorted by relevance

12

/external/python/cpython2/Lib/
Dshlex.py23 def __init__(self, instream=None, infile=None, posix=False): argument
24 if isinstance(instream, basestring):
25 instream = StringIO(instream)
26 if instream is not None:
27 self.instream = instream
30 self.instream = sys.stdin
57 % (self.instream, self.lineno)
69 self.filestack.appendleft((self.infile, self.instream, self.lineno))
71 self.instream = newstream
77 print 'shlex: pushing to stream %s' % (self.instream,)
[all …]
Dnetrc.py50 lexer.instream.seek(-pos, 1)
51 lexer.instream.readline()
62 line = lexer.instream.readline()
/external/python/cpython3/Lib/
Dshlex.py21 def __init__(self, instream=None, infile=None, posix=False, argument
23 if isinstance(instream, str):
24 instream = StringIO(instream)
25 if instream is not None:
26 self.instream = instream
29 self.instream = sys.stdin
78 self.filestack.appendleft((self.infile, self.instream, self.lineno))
80 self.instream = newstream
86 print('shlex: pushing to stream %s' % (self.instream,))
90 self.instream.close()
[all …]
Dnetrc.py47 lexer.instream.readline()
58 line = lexer.instream.readline()
/external/apache-http/src/org/apache/http/entity/
DInputStreamEntity.java60 public InputStreamEntity(final InputStream instream, long length) { in InputStreamEntity() argument
62 if (instream == null) { in InputStreamEntity()
65 this.content = instream; in InputStreamEntity()
85 InputStream instream = this.content; in writeTo() local
90 while ((l = instream.read(buffer)) != -1) { in writeTo()
97 l = instream.read(buffer, 0, (int)Math.min(BUFFER_SIZE, remaining)); in writeTo()
DBasicHttpEntity.java121 public void setContent(final InputStream instream) { in setContent() argument
122 this.content = instream; in setContent()
131 InputStream instream = getContent(); in writeTo() local
134 while ((l = instream.read(tmp)) != -1) { in writeTo()
DFileEntity.java83 InputStream instream = new FileInputStream(this.file); in writeTo() local
87 while ((l = instream.read(tmp)) != -1) { in writeTo()
92 instream.close(); in writeTo()
/external/apache-http/src/org/apache/http/util/
DEntityUtils.java69 InputStream instream = entity.getContent(); in toByteArray() local
70 if (instream == null) { in toByteArray()
84 while((l = instream.read(tmp)) != -1) { in toByteArray()
88 instream.close(); in toByteArray()
117 InputStream instream = entity.getContent(); in toString() local
118 if (instream == null) { in toString()
135 Reader reader = new InputStreamReader(instream, charset); in toString()
/external/nanohttpd/webserver/src/test/java/fi/iki/elonen/
DAbstractTestHttpServer.java47 InputStream instream = entity.getContent(); in readContents() local
48 return readContents(instream); in readContents()
51 protected byte[] readContents(InputStream instream) throws IOException { in readContents() argument
57 while ((count = instream.read(buffer)) >= 0) { in readContents()
62 instream.close(); in readContents()
/external/apache-http/src/org/apache/http/impl/conn/
DWire.java58 private void wire(String header, InputStream instream) in wire() argument
62 while ((ch = instream.read()) != -1) { in wire()
100 public void input(InputStream instream) in input() argument
102 if (instream == null) { in input()
105 wire("<< ", instream); in input()
/external/apache-http/src/org/apache/http/impl/io/
DAbstractSessionInputBuffer.java60 private InputStream instream; field in AbstractSessionInputBuffer
73 protected void init(final InputStream instream, int buffersize, final HttpParams params) { in init() argument
74 if (instream == null) { in init()
83 this.instream = instream; in init()
108 l = this.instream.read(this.buffer, off, len); in fillBuffer()
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/bench/
Djsmin.py83 c = self.instream.read(1)
213 def minify(self, instream, outstream): argument
214 self.instream = instream
221 self.instream.close()
Djsmin_2_0_9.py68 def __init__(self, instream=None, outstream=None): argument
69 self.ins = instream
72 def minify(self, instream=None, outstream=None): argument
73 if instream and outstream:
74 self.ins, self.outs = instream, outstream
/external/apache-http/android/src/com/android/internal/http/multipart/
DFilePart.java221 InputStream instream = source.createInputStream(); in sendData() local
224 while ((len = instream.read(tmp)) >= 0) { in sendData()
229 instream.close(); in sendData()
/external/curl/lib/
Dmime.c619 void *instream) in mime_mem_read() argument
621 curl_mimepart *part = (curl_mimepart *) instream; in mime_mem_read()
635 static int mime_mem_seek(void *instream, curl_off_t offset, int whence) in mime_mem_seek() argument
637 curl_mimepart *part = (curl_mimepart *) instream; in mime_mem_seek()
674 void *instream) in mime_file_read() argument
676 curl_mimepart *part = (curl_mimepart *) instream; in mime_file_read()
684 static int mime_file_seek(void *instream, curl_off_t offset, int whence) in mime_file_seek() argument
686 curl_mimepart *part = (curl_mimepart *) instream; in mime_file_seek()
921 void *instream) in mime_subparts_read() argument
923 curl_mime *mime = (curl_mime *) instream; in mime_subparts_read()
[all …]
Dmime.h134 void *instream);
/external/nanohttpd/nanolets/src/test/java/fi/iki/elonen/router/
DTestNanolets.java300 InputStream instream = entity.getContent(); in readContents() local
301 return readContents(instream); in readContents()
304 private byte[] readContents(InputStream instream) throws IOException { in readContents() argument
311 while ((count = instream.read(buffer)) >= 0) { in readContents()
316 instream.close(); in readContents()
/external/curl/tests/libtest/
Dmk-lib1521.pl98 void *instream)
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/
DCodeMangler.java360 InputStream instream = new FileInputStream(infile); in processFile() local
362 BufferedReader reader = new BufferedReader(new InputStreamReader(instream)); in processFile()
583 instream.close(); in processFile()
/external/python/cpython2/Doc/library/
Dshlex.rst52 .. class:: shlex([instream[, infile[, posix]]])
61 attribute. If the *instream* argument is omitted or equal to ``sys.stdin``,
223 .. attribute:: shlex.instream
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/C/
DC.stg752 ANTLR3_API p<name> <name>New (<inputType()> instream<recognizer.grammar.delegators:{g|, p<g…
753 ANTLR3_API p<name> <name>NewSSD (<inputType()> instream, pANTLR3_RECOGNIZER_SHARED_STATE state…
939 * \param[in] instream Pointer to an initialized input stream
945 (<inputType()> instream<grammar.delegators:{g|, p<g.recognizerName> <g:delegateName()>}>)
949 return <name>NewSSD(instream, NULL<grammar.delegators:{g|, <g:delegateName()>}>);
954 * \param[in] instream Pointer to an initialized input stream
961 (pANTLR3_INPUT_STREAM instream, pANTLR3_RECOGNIZER_SHARED_STATE state<grammar.delegators:{g|, p<g.r…
986 ctx->pLexer = antlr3LexerNewStream(ANTLR3_SIZE_HINT, instream, state);
1026 …{g|ctx-><g:delegateName()> = <g.recognizerName>NewSSD(instream, ctx->pLexer->rec->state, ctx<gramm…
1246 * \param[in] instream Pointer to an input stream interface.
[all …]
/external/curl/src/
Dtool_formparse.c407 static int stdin_seek(void *instream, curl_off_t offset, int whence) in stdin_seek() argument
409 standard_input *sip = (standard_input *) instream; in stdin_seek()
/external/python/cpython3/Doc/library/
Dshlex.rst76 .. class:: shlex(instream=None, infile=None, posix=False, punctuation_chars=False)
84 value of the :attr:`~shlex.infile` attribute. If the *instream*
258 .. attribute:: shlex.instream
/external/google-breakpad/src/third_party/curl/
Dcurl.h207 typedef int (*curl_seek_callback)(void *instream,
221 void *instream);
/external/curl/include/curl/
Dcurl.h344 typedef int (*curl_seek_callback)(void *instream,
358 void *instream);

12