What is this line of code means?

Hi have a general question, I am not sure if it right place to ask. But I will be grateful if some body could help on this one. I could not figure out what is that line of code (**) is doing or what does it mean. I gave sample implementation here.

Public class Decoder{

InputStream in

Public Decoder(InputStream in){

This.in = in;

String st = somefunction(in)

}

public static Xval decode(InputStream in){

return new Decoder(in).decode(); **

}

}

What I don齮 understand that what is line of Code do 齬eturn new Decoder(in).decode(); ? I have never seen this kind of implementation. The return type is Xval but the function is retrunin t object of this (Decoder) type. And what is Decoder(in).decode() when function decode() is doing nothing except returning a object?

Thank you

[868 byte] By [k_dhar] at [2007-9-30 16:09:30]
# 1
Apparently, the Decoder class has a method called decode() that returns a Xval object. The line is equivalent toDecoder d = new Decoder(in);Xval xv = d.decode();return xv;
atmguy at 2007-7-5 23:40:13 > top of Java-index,Administration Tools,Sun Connection...
# 2
atmguy , thank u very very much. I got it now :)
k_dhar at 2007-7-5 23:40:13 > top of Java-index,Administration Tools,Sun Connection...