Method length()
Return type: long
Member of:
java.io.File
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
byte[] b = new byte[(int) f.length()];
2
ByteArrayOutputStream bytes = new ByteArrayOutputStream((int) f.length());
3
byte[] fileBuffer = new byte[(int)file.length()];
4
return (int)f.length();
5
fileSize = in.length();
6
assertTrue( "Check Full copy", destination.length() == FILE1_SIZE );
7
byte[] bytes = new byte[(int) classFile.length()];
8
return f.isFile() && (f.length() > 0);
9
new BoundaryInputStream(new FileInputStream(file), (int)file.length());
10
if (maxBytes > 0 && logFile != null && logFile.length() > maxBytes) {
11
ByteArrayOutputStream bytes = new ByteArrayOutputStream((int) f.length());
12
directory.length(),
13
char[] c = new char[(int) file.length()];
14
size = theFile.length();
15
int filesize = (int)bfile.length();
16
int L = (int) f.length();
17
if (logFile != null && logFile.exists() && logFile.length() > 0) {
18
int bufsize = (int)fullname.length();
19
setAttribute("Content-Length", srcFile.length());
20
totalLength += (int) f.length();
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.