When I write the constructor in Java like this:
import java.io.IOException;
import java.io.OutputStream;
public class MultiOutputStream extends OutputStream{
OutputStream[] oStream;
public MultiOutputStream(OutputStream oStream) {
this.oStream = oStream;
// TODO Auto-generated constructor stub
}
@Override
public void write(int arg0) throws IOException {
// TODO Auto-generated method stub
}
}
Eclipse now says: Type mismatch: cannot convert from OutputStream to OutputStream[]. So Eclipse corrected my constructor like this:
import java.io.IOException;
import java.io.OutputStream;
public class MultiOutputStream extends OutputStream{
OutputStream[] oStream;
public MultiOutputStream(OutputStream... oStream) {
this.oStream = oStream;
// TODO Auto-generated constructor stub
}
@Override
public void write(int arg0) throws IOException {
// TODO Auto-generated method stub
}
}
What does these points stand for?
Thanks in advance!