Lines Matching defs:in
5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
43 DataInputStream in = null;
53 in = new DataInputStream(new BufferedInputStream(socket.getInputStream()));
59 int width = in.readInt();
60 int height = in.readInt();
64 while (readLayer(in, psd)) {
77 if (in != null) {
78 in.close();
91 private static boolean readLayer(DataInputStream in, PsdFile psd) {
93 if (in.read() == 2) {
97 String name = in.readUTF();
99 boolean visible = in.read() == 1;
100 int x = in.readInt();
101 int y = in.readInt();
102 int dataSize = in.readInt();
107 read += in.read(data, read, dataSize - read);
113 // Ensure the image is in the right format
131 BufferedInputStream in = null;
140 in = new BufferedInputStream(socket.getInputStream());
146 return ImageIO.read(in);
154 if (in != null) {
155 in.close();