URLConnection.java: Reformatted.
2004-09-28 Michael Koch <konqueror@gmx.de> * java/net/URLConnection.java: Reformatted. * java/net/URLClassLoader.java: Reformatted. (getContent): Reordered return of content. (getContentHandler): Don't check for null explicitely. From-SVN: r88226
This commit is contained in:
parent
1165dc50e8
commit
95b88040e2
3 changed files with 46 additions and 32 deletions
|
@ -858,7 +858,7 @@ public class URLClassLoader extends SecureClassLoader
|
|||
// Just try to read it in all at once
|
||||
data = new byte[length];
|
||||
int pos = 0;
|
||||
while(length - pos > 0)
|
||||
while (length - pos > 0)
|
||||
{
|
||||
int len = in.read(data, pos, length - pos);
|
||||
if (len == -1)
|
||||
|
@ -872,7 +872,7 @@ public class URLClassLoader extends SecureClassLoader
|
|||
// We don't know the data length.
|
||||
// Have to read it in chunks.
|
||||
ByteArrayOutputStream out = new ByteArrayOutputStream(4096);
|
||||
byte b[] = new byte[4096];
|
||||
byte[] b = new byte[4096];
|
||||
int l = 0;
|
||||
while (l != -1)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue