I'm working on translating a small package from C++ to Java. I've never really used C++, so some of the syntax is a bit of a mystery. In particular, I'm having difficulty working out what the Java equivalent to this would be:
file: SomeClass.cpp
SomeClass::SomeClass( BitStream* data, const char* const filename ) :
data( data ), cipher( filename ), iv( new Botan::byte [cipher.BLOCK_SIZE] ),
ivBitsSet( 0 ), keyMaterialRemaining( 0 ), keyMaterial( new Botan::byte [cipher.BLOCK_SIZE] ) {}
I'm happy with (in Java):
public SomeClass{
public SomeClass(InputStream data, String filename){
}
}
but I'm not sure what to do with the stuff after the :
in the C++. Are they fields? Optional parameters? Apologies for trivial question, but haven't got far with Google on this...